List<JComponent> (@Nullable DiffViewer viewer, @NotNull ContentDiffRequest request, @NotNull List<? extends Editor> editors) { List<DiffContent> contents = request.getContents(); List<@Nls String> titles = request.getContentTitles(); boolean equalCharsets = TextDiffViewerUtil.areEqualCharsets(contents); boolean equalSeparators = TextDiffViewerUtil.areEqualLineSeparators(contents); List<JComponent> result = new ArrayList<>(contents.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++) { JComponent title = needCreateTitle ? createTitle(titles.get(i), contents.get(i), equalCharsets, equalSeparators, editors.get(i), diffTitleCustomizers != null ? diffTitleCustomizers.get(i) : null) : null; title = createTitleWithNotifications(viewer, title, contents.get(i)); result.add(title); } return result; }