private static boolean isRootDirAvailable(@NotNull BuildEnvironment environment) {
    try {
      environment.getBuildIdentifier().getRootDir();
    }
    catch (UnsupportedMethodException e) {
      return false;
    }
    return true;
  }
private static boolean isRootDirAvailable(@NotNull BuildEnvironment environment)