JpsAntInstallation (@NotNull JpsModel model, @NotNull String antInstallationName) { JpsElementCollection<JpsAntInstallation> antInstallations = model.getGlobal().getContainer().getChild(JpsAntInstallationImpl.COLLECTION_ROLE); if (antInstallations != null) { for (JpsAntInstallation installation : antInstallations.getElements()) { if (antInstallationName.equals(installation.getName())) { return installation; } } LOG.debug("Ant installation '" + antInstallationName + "' not found"); } else { LOG.debug("Ant installations weren't loaded"); } return null; }