void (@NotNull Project project) { if (!isEnabledForProject()) { setCommandHighlighting(null); return; } String command = myWidget.getTypedShellCommand().trim(); TerminalLineIntervalHighlighting commandHighlighting = highlightCommandIfMatched(project, command); setCommandHighlighting(commandHighlighting); ApplicationManager.getApplication().invokeLater(() -> { showOrHideNotification(commandHighlighting); }, ModalityState.stateForComponent(myWidget.getTerminalPanel())); }