private static void visitRoots(@NotNull Module module, final boolean skipSdk, boolean processModuleDeps,
                                 final RootVisitor visitor) {
    OrderEnumerator enumerator = OrderEnumerator.orderEntries(module);
    if (processModuleDeps) {
      enumerator = enumerator.recursively();
    }
    if (skipSdk) {
      enumerator = enumerator.withoutSdk();
    }
    enumerator.forEach(orderEntry -> {
      if (orderEntry instanceof ModuleSourceOrderEntry) {
        return visitModuleContentEntries(((ModuleSourceOrderEntry)orderEntry).getRootModel(), visitor);
      }
      return visitOrderEntryRoots(visitor, orderEntry);
    });
  }
private static void visitRoots(@NotNull Module module, final boolean skipSdk, boolean processModuleDeps,
                                 final RootVisitor visitor)