void (@NotNull UnifiedDiffViewer viewer, @NotNull Side side, @NotNull AnnotationData data) { if (side != viewer.getMasterSide()) return; Project project = Objects.requireNonNull(viewer.getProject()); UnifiedUpToDateLineNumberProvider lineNumberProvider = new UnifiedUpToDateLineNumberProvider(viewer, side); AnnotateToggleAction.doAnnotate(viewer.getEditor(), project, data.annotation, data.vcs, lineNumberProvider); }