public Map<JavaPassLocation, List<NamedPass>> getPasses() {
    return Map.copyOf(
      passes.keySet()
        .stream().collect(Collectors.toMap(k -> k, v -> List.copyOf(passes.get(v))))
    );
  }
Registers a pass to be run at the given code location.

@param location When to run this pass
@param pass The pass object to run
src/org/jetbrains/java/decompiler/api/java/JavaPassRegistrar.java