void (ProjectStructureProblemsHolder problemsHolder) { if (((LibraryEx)myLibrary).isDisposed()) return; final LibraryEx library = (LibraryEx)myContext.getLibraryModel(myLibrary); if (library == null || library.isDisposed()) return; reportInvalidRoots(problemsHolder, library, OrderRootType.CLASSES, "classes", ProjectStructureProblemType.error("library-invalid-classes-path")); final String libraryName = library.getName(); if (libraryName == null || !libraryName.startsWith("Maven: ")) { reportInvalidRoots(problemsHolder, library, OrderRootType.SOURCES, "sources", ProjectStructureProblemType.warning("library-invalid-source-javadoc-path")); reportInvalidRoots(problemsHolder, library, JavadocOrderRootType.getInstance(), "javadoc", ProjectStructureProblemType.warning("library-invalid-source-javadoc-path")); } }