void (@NotNull AnAction action) { try { final PluginInfo info = PluginInfoDetectorKt.getPluginInfo(action.getClass()); if (!info.isDevelopedByJetBrains()) { return; } AWTEvent e = EventQueue.getCurrentEvent(); String path = null; if (e instanceof ItemEvent) { path = getPathFromMenuItem(e, action); } else if (e instanceof MouseEvent) { path = getPathFromMenuSelectionManager(action); } } catch (Exception ignore) { } }