@Nullable
  private static JpsAntInstallation getBundledAntInstallation() {
    String antPath = System.getProperty(BUNDLED_ANT_PATH_PROPERTY);
    File antHome;
    if (antPath != null) {
      LOG.info("Using bundled Ant " + antPath);

      antHome = new File(antPath);
      if (new File(antHome, "ant.jar").exists()) {
        // everything is packed to a single ./dist/ant.jar
        return bundledAnt(antHome, antHome.getAbsolutePath());
      }
    }
    else {
      String appHome = PathManager.getHomePath(false);
      if (appHome == null) {
        LOG.debug("idea.home.path and " + BUNDLED_ANT_PATH_PROPERTY + " aren't specified, bundled Ant won't be configured");
        return null;
      }

      antHome = new File(appHome, "lib" + File.separator + "ant");
      if (!antHome.exists()) {
        File communityAntHome = new File(appHome, "community" + File.separator + "lib" + File.separator + "ant");
        if (communityAntHome.exists()) {
          antHome = communityAntHome;
        }
      }
    }

    return bundledAnt(antHome, new File(antHome, "lib").getAbsolutePath());
  }
@Nullable
  private static JpsAntInstallation getBundledAntInstallation()