public void setTitles(@NotNull List<? extends @Nullable JComponent> titleComponents) {
    for (ThreeSide side : ThreeSide.values()) {
      DiffContentPanel panel = side.select(myPanels);
      JComponent title = side.select(titleComponents);
      panel.setTitle(title);
    }
  }
public void setTitles(@NotNull List<? extends @Nullable JComponent> titleComponents)