void (@NotNull String mavenVersion, List<File> classpath, String root) { classpath.add(new File(PathUtil.getJarPathForClass(MavenId.class))); classpath.add(new File(PathUtil.getJarPathForClass(MavenServer.class))); classpath.add(new File(root, "maven3-server-common.jar")); addDir(classpath, new File(root, "maven3-server-lib"), f -> true); classpath.add(new File(root, "maven3-server.jar")); if (StringUtil.compareVersionNumbers(mavenVersion, "3.6") >= 0) { classpath.add(new File(root, "maven36-server.jar")); } }