void (final @NotNull AnActionEvent e) { Window window = KeyboardFocusManager.getCurrentKeyboardFocusManager().getActiveWindow(); if (window instanceof Frame) { ((Frame)window).setState(Frame.ICONIFIED); } }