public @Nullable String getCurrentWorkingDir(@Nullable TerminalTabState state) {
    return state != null ? state.myWorkingDirectory : null;
  }
public @Nullable String getCurrentWorkingDir(@Nullable TerminalTabState state)