private static boolean shouldBeBuiltByExternalSystem(@NotNull Module module) {
    for (Facet<?> facet : FacetManager.getInstance(module).getAllFacets()) {
      if (ArrayUtil.contains(facet.getName(), "Android", "Android-Gradle", "Java-Gradle")) return true;
    }
    return false;
  }
private static boolean shouldBeBuiltByExternalSystem(@NotNull Module module)