List<JComponent> (@Nullable DiffViewer viewer, @NotNull ContentDiffRequest request) { List<DiffContent> contents = request.getContents(); List<@Nls String> titles = request.getContentTitles(); List<JComponent> components = new ArrayList<>(titles.size()); List<DiffEditorTitleCustomizer> diffTitleCustomizers = request.getUserData(DiffUserDataKeysEx.EDITORS_TITLE_CUSTOMIZER); boolean needCreateTitle = !isUserDataFlagSet(DiffUserDataKeysEx.EDITORS_HIDE_TITLE, request); for (int i = 0; i < contents.size(); i++) { DiffEditorTitleCustomizer customizer = diffTitleCustomizers != null ? diffTitleCustomizers.get(i) : null; JComponent title = needCreateTitle ? createTitle(titles.get(i), customizer) : null; title = createTitleWithNotifications(viewer, title, contents.get(i)); components.add(title); } return components; }