void (final Collection<? extends ResourceBundle> resourceBundles, final Project project) { final Set<PsiFileSystemItem> toUpdateInProjectView = new HashSet<>(); for (ResourceBundle resourceBundle : resourceBundles) { for (final PropertiesFile propertiesFile : resourceBundle.getPropertiesFiles()) { PsiDirectory containingDirectory = propertiesFile.getContainingFile().getContainingDirectory(); if (containingDirectory != null) { toUpdateInProjectView.add(containingDirectory); } } ResourceBundleManager.getInstance(project).dissociateResourceBundle(resourceBundle); } AbstractProjectViewPane currentProjectViewPane = ProjectView.getInstance(project).getCurrentProjectViewPane(); if (currentProjectViewPane != null) { for (PsiFileSystemItem item : toUpdateInProjectView) { currentProjectViewPane.updateFrom(item, false, true); } } }