boolean () { VirtualFile file = getVirtualFile(); Project project = getProject(); ProjectSettingsService service = ProjectSettingsService.getInstance(myProject); return file != null && (ProjectRootsUtil.isModuleContentRoot(file, project) && service.canOpenModuleSettings() || ProjectRootsUtil.isModuleSourceRoot(file, project) && service.canOpenContentEntriesSettings() || ProjectRootsUtil.isLibraryRoot(file, project) && service.canOpenModuleLibrarySettings()); }