public @NotNull TabImpl createNewTab() {
    final int index = myTabs.stream().mapToInt(x -> x.getIndex()).max().orElse(-1) + 1;
    return createNewTab(index);
  }
public @NotNull TabImpl createNewTab()