void (@NotNull AnActionEvent e) { @Nullable Component component = e.getData(PlatformCoreDataKeys.CONTEXT_COMPONENT); Window window = ComponentUtil.getWindow(component); if (!(window instanceof JDialog)) return; doMaximize((JDialog)window); }