Set<String> (@NotNull Set<Class<?>> toolingExtensionClasses) { return ContainerUtil.map2SetNotNull(toolingExtensionClasses, aClass -> { String path = PathManager.getJarPathForClass(aClass); if (path != null) { if (FileUtilRt.getNameWithoutExtension(path).equals("gradle-api-" + GradleVersion.current().getBaseVersion())) { LOG.warn("The gradle api jar shouldn't be added to the gradle daemon classpath: {" + aClass + "," + path + "}"); return null; } if (FileUtil.normalize(path).endsWith("lib/app.jar")) { final String message = "Attempting to pass whole IDEA app [" + path + "] into Gradle Daemon for class [" + aClass + "]"; if (ApplicationManagerEx.isInIntegrationTest()) { LOG.error(message); } else { LOG.warn(message); } } return FileUtil.toCanonicalPath(path); } return null; }); }