Collection<ResourceBundle> (final AnActionEvent event) { final Set<ResourceBundle> targetResourceBundles = new HashSet<>(); final ResourceBundle[] chosenResourceBundles = event.getData(ResourceBundle.ARRAY_DATA_KEY); if (chosenResourceBundles != null) { for (ResourceBundle resourceBundle : chosenResourceBundles) { if (resourceBundle.getPropertiesFiles().size() > 1) { targetResourceBundles.add(resourceBundle); } } } final PsiElement[] psiElements = event.getData(LangDataKeys.PSI_ELEMENT_ARRAY); if (psiElements != null) { for (PsiElement element : psiElements) { final PropertiesFile propertiesFile = PropertiesImplUtil.getPropertiesFile(element); if (propertiesFile != null) { final ResourceBundle bundle = propertiesFile.getResourceBundle(); if (bundle.getPropertiesFiles().size() > 1) { targetResourceBundles.add(bundle); } } } } return targetResourceBundles; }