void (final @NotNull ResourceBundle resourceBundle) { closeResourceBundleEditors(resourceBundle); if (resourceBundle instanceof CustomResourceBundle) { final CustomResourceBundleState state = getCustomResourceBundleState(resourceBundle.getDefaultPropertiesFile().getVirtualFile()); LOG.assertTrue(state != null); myState.getCustomResourceBundles().remove(state); } else { if (EmptyResourceBundle.getInstance() != resourceBundle) { ((ResourceBundleImpl) resourceBundle).invalidate(); } for (final PropertiesFile propertiesFile : resourceBundle.getPropertiesFiles()) { final VirtualFile file = propertiesFile.getContainingFile().getVirtualFile(); myState.getDissociatedFiles().add(file.getUrl()); } } }