void (@NotNull AnActionEvent e) { final Component component = e.getData(PlatformCoreDataKeys.CONTEXT_COMPONENT); if (component instanceof JTextComponent textComponent) { textComponent.setText(""); } }