boolean (@NotNull ModuleRootManager rootManager, Module classModule, DependencyScope scope) { return ContainerUtil.exists(rootManager.getOrderEntries(), entry -> entry instanceof ModuleOrderEntry && classModule.equals(((ModuleOrderEntry)entry).getModule()) && (scope == DependencyScope.TEST || scope == ((ModuleOrderEntry)entry).getScope())); }