void (EditorEx editor) { super.prepareEditor(editor); editor.setPlaceholder(XDebuggerBundle.message( "debugger.evaluate.expression.or.add.a.watch.hint", KeymapUtil.getShortcutText(new KeyboardShortcut(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), null)), KeymapUtil.getShortcutText(new KeyboardShortcut(XDebuggerEvaluationDialog.ADD_WATCH_KEYSTROKE, null)) )); editor.addFocusListener(new FocusChangeListener() { private static final Set<FocusEvent.Cause> myCauses = Set.of( FocusEvent.Cause.UNKNOWN, FocusEvent.Cause.TRAVERSAL_FORWARD, FocusEvent.Cause.TRAVERSAL_BACKWARD ); @Override public void focusGained(@NotNull Editor editor, @NotNull FocusEvent event) { if (myCauses.contains(event.getCause())) { boolean shouldBeIgnored = myEvaluateComboBox.getComboBox().isPopupVisible(); if (!shouldBeIgnored) { DebuggerEvaluationStatisticsCollector.INPUT_FOCUS.log(getTree().getProject()); } } } }); }