String (@NotNull LibraryRootType rootType) { for (RootDetector detector : myDetectors) { if (detector.getRootType().equals(rootType.getType()) && detector.isJarDirectory() == rootType.isJarDirectory()) { return detector.getPresentableRootTypeName(); } } return null; }