void (@NotNull InputEvent event) { Shortcut shortcut = createShortcut(event); if (shortcut == null) return; if (CANCEL_SHORTCUT.equals(shortcut)) { event.consume(); cancel(); } else if (DUMP_SHORTCUT.equals(shortcut)) { event.consume(); IdeFrame frame = UIUtil.getParentOfType(IdeFrame.class, myComponent); DumpThreadsAction.dumpThreads(frame == null ? null : frame.getProject()); } }