public @NotNull TabImpl getOrCreateTab(final int index) {
    if (index < 0) {
      return createNewTab();
    }

    TabImpl tab = findTab(index);
    if (tab != null) return tab;

    tab = createNewTab(index);

    return tab;
  }
public @NotNull TabImpl getOrCreateTab(final int index)