public static boolean isValidMavenHome(@Nullable File home) {
    if (home == null) return false;
    try {
      String[] list = new File(home, BIN_DIR).list();
      if (list == null) return false;
      Set<String> set = Set.of(list);
      return set.contains(M2_CONF_FILE) && set.contains(MVN_FILE);
    }
    catch (Exception ignored) {
    }
    return false;
  }
public static boolean isValidMavenHome(@Nullable File home)