private static boolean hasSources(Module module, final JavaSourceRootType rootType) {
    return !ModuleRootManager.getInstance(module).getSourceRoots(rootType).isEmpty();
  }
private static boolean hasSources(Module module, final JavaSourceRootType rootType)