JpsAntInstallation (@NotNull JpsModel model, @NotNull String buildFileUrl) { JpsAntBuildFileOptions options = getOptions(model.getProject(), buildFileUrl); String antInstallationName; if (options.isUseProjectDefaultAnt()) { JpsAntConfiguration antConfiguration = getAntConfiguration(model.getProject()); antInstallationName = antConfiguration != null ? antConfiguration.getProjectDefaultAntName() : null; } else { antInstallationName = options.getAntInstallationName(); } if (antInstallationName == null) return getBundledAntInstallation(); return findAntInstallation(model, antInstallationName); }