void (final ActionEvent e) { if (StringUtil.isEmpty(mySearchTextComponent.getText())) { close(); } else { IdeFocusManager.getInstance(myProject).requestFocus(myTargetComponent, true); addTextToRecent(mySearchTextComponent); } }