LibraryVersionProperties (List<? extends VirtualFile> classesRoots, String detectionClass) { if (!LibraryUtil.isClassAvailableInLibrary(classesRoots, detectionClass)) { return null; } final String version = JarVersionDetectionUtil.detectJarVersion(detectionClass, classesRoots); return new LibraryVersionProperties(version); }