void (final TreeSelectionEvent e) { hideIntentionHint(); updateIntentionHintVisibility(); ErrorInfo[] errorInfos = getErrorInfos(); final String text; if (errorInfos.length > 0) { text = errorInfos [0].myDescription; } else { text = ""; } StatusBar.Info.set(text, myComponent.getProject()); }