String (@NotNull String detectionClass, @NotNull Module module) { for (OrderEntry library : ModuleRootManager.getInstance(module).getOrderEntries()) { if (library instanceof LibraryOrderEntry) { VirtualFile jar = LibrariesHelper.getInstance().findJarByClass(((LibraryOrderEntry)library).getLibrary(), detectionClass); if (jar != null && jar.getFileSystem() instanceof JarFileSystem) { return getMainAttribute(jar, Attributes.Name.IMPLEMENTATION_VERSION); } } } return null; }