public static boolean hasModulesOfType(@NotNull Project project, @NotNull ModuleType<?> module) {
    return !getModulesOfType(project, module).isEmpty();
  }
public static boolean hasModulesOfType(@NotNull Project project, @NotNull ModuleType<?> module)