private void selectFirstMessage() {
    if (!isHeadlessMode()) {
      SwingUtilities.invokeLater(() -> {
        if (myProject.isDisposed()) {
          return;
        }
        synchronized (myMessageViewLock) {
          if (myErrorTreeView != null) {
            myErrorTreeView.selectFirstMessage();
          }
        }
      });
    }
  }
private void selectFirstMessage()