void (final @NotNull Editor editor) { if (Boolean.TRUE.equals(editor.getUserData(AutoPopupController.AUTO_POPUP_ON_FOCUS_GAINED))) { AutoPopupController.getInstance(editor.getProject()).scheduleAutoPopup(editor); return; } if (toShowHintRef.get() && editor.getDocument().getText().isEmpty() && !hasValidationInfo(editor)) { ApplicationManager.getApplication().invokeLater( () -> HintManager.getInstance().showInformationHint(editor, LangBundle.message("hint.text.code.completion.available", completionShortcutText))); } }