void (@NotNull AnActionEvent e) { ResourceBundle resourceBundle = getResourceBundle(e); e.getPresentation().setEnabledAndVisible(resourceBundle != null && CreateResourceBundleDialogComponent.getResourceBundlePlacementDirectory(resourceBundle) != null); }