void (@NotNull String mavenVersion, List<File> classpath, String root) { BuildDependenciesCommunityRoot communityRoot = new BuildDependenciesCommunityRoot(Path.of(PathManager.getCommunityHomePath())); BundledMavenDownloader.INSTANCE.downloadMaven3LibsSync(communityRoot); classpath.add(new File(PathUtil.getJarPathForClass(MavenId.class))); classpath.add(new File(root, "intellij.maven.server")); File parentFile = MavenUtil.getMavenPluginParentFile(); classpath.add(new File(root, "intellij.maven.server.m3.common")); addDir(classpath, new File(parentFile, "maven3-server-common/lib"), f -> true); classpath.add(new File(root, "intellij.maven.server.m3.impl")); if (StringUtil.compareVersionNumbers(mavenVersion, "3.6") >= 0) { classpath.add(new File(root, "intellij.maven.server.m36.impl")); } }