ViewerAnnotator (@NotNull DiffViewerBase viewer, @NotNull Editor editor) { for (ViewerAnnotatorFactory annotator : Holder.ANNOTATORS) { if (annotator.getViewerClass().isInstance(viewer)) return annotator.createAnnotator(viewer, editor); } return null; }