ResourceBundle (@NotNull AnActionEvent e) { final Navigatable[] data = e.getData(CommonDataKeys.NAVIGATABLE_ARRAY); if (data == null || data.length != 1) return null; if (!(data[0] instanceof ResourceBundleAwareNode)) return null; return ((ResourceBundleAwareNode)data[0]).getResourceBundle(); }