@NotNull
  public static List<JComponent> createPatchTextTitles(@Nullable DiffViewer viewer,
                                                       @NotNull DiffRequest request,
                                                       @NotNull List<@Nls @Nullable String> titles) {
    List<JComponent> result = 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 < titles.size(); i++) {
      JComponent title = null;
      if (needCreateTitle) {
        String titleText = titles.get(i);
        DiffEditorTitleCustomizer customizer = diffTitleCustomizers != null ? diffTitleCustomizers.get(i) : null;
        //noinspection RedundantCast
        title = createTitle(titleText, (LineSeparator)null, (Charset)null, (Boolean)null, true, customizer);
      }

      title = createTitleWithNotifications(viewer, title, null);
      result.add(title);
    }

    return result;
  }
@NotNull
  public static List<JComponent> createPatchTextTitles(@Nullable DiffViewer viewer,
                                                       @NotNull DiffRequest request,
                                                       @NotNull List<@Nls @Nullable String> titles)