I populate the SimpleDiffRequest using DiffContentFactory#createFragment (which returns a DocumentContent for each versions of a given code snippet to compare).
Is there some Util class that allows me to extract the following information:
Register DiffExtension and keep track of viewers (and please be careful with their lifetime and do cleanup on their disposal).
Having diff viewer, you can access editor and diff model. E.g, for UnifiedDiffViewer you can get LOC from getEditor().getDocument().getLineCount() and number of chunks can be calculated from getDiffChanges().
Diff content can be changed, so you have to install DiffViewerListener in your extension reacting on re-diff.