public void setSelectedTitle(final @Nullable String title) {
    if (title == null) return;

    for (int i = 0; i < tabbedPane.getTabCount(); i++) {
      final String each = tabbedPane.getTitleAt(i);
      if (title.equals(each)) {
        tabbedPane.setSelectedIndex(i);
        break;
      }
    }
  }
public void setSelectedTitle(final @Nullable String title)