DependencyScope (String name) { LibraryOrderEntry entry = OrderEntryUtil.findLibraryOrderEntry(ModuleRootManager.getInstance(getModule()), name); assertNotNull(entry); Library library = entry.getLibrary(); assertNotNull(library); return new JUnitDependencyScopeSuggester().getDefaultDependencyScope(library); }