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