boolean setCurrentSession(@Nullable XDebugSessionImpl session) {
    XDebugSessionImpl previousSession = myActiveSession.getAndSet(session);
    boolean sessionChanged = previousSession != session;
    if (sessionChanged) {
      if (session != null) {
        XDebugSessionTab tab = session.getSessionTab();
        if (tab != null) {
          tab.select();
        }
        myExecutionPointManager.setAlternativeSourceKindFlow(session.getAlternativeSourceKindState());
      }
      else {
        myExecutionPointManager.clearExecutionPoint();
      }
      onActiveSessionChanged(previousSession, session);
    }
    return sessionChanged;
  }
boolean setCurrentSession(@Nullable XDebugSessionImpl session)