@Override
  public @Nls @Nullable String getDefaultSessionName(@NotNull TtyConnector connector) {
    if (getProcessTtyConnector(connector) instanceof PtyProcessTtyConnector) {
      // use name from settings for local terminal
      return TerminalOptionsProvider.getInstance().getTabName();
    }
    return super.getDefaultSessionName(connector);
  }
@Override
  public @Nls @Nullable String getDefaultSessionName(@NotNull TtyConnector connector)