void (@NotNull DiffViewer diffViewer, @NotNull DiffContext context, @NotNull DiffRequest request) { if (diffViewer instanceof DiffViewerBase viewer) { viewer.addListener(new MyDiffViewerListener(viewer)); } }