Object (final AnActionEvent e) { final ModuleGroup[] moduleGroups = e.getData(ModuleGroup.ARRAY_DATA_KEY); if (moduleGroups != null && moduleGroups.length > 0) { return moduleGroups [0]; } return null; }