public static @NotNull File getBundledAntHome() {
    File distDir = PluginPathManager.getPluginResource(AntInstallation.class, "dist");
    if (distDir != null && distDir.exists()) {
      return distDir;
    }

    // probably running from source
    File antFile = PathManager.findFileInLibDirectory(ANT_FILE);
    if (antFile.exists()) {
      return antFile;
    }

    throw new IllegalStateException("Unable to find bundled Ant");
  }
public static @NotNull File getBundledAntHome()