public void register(JavaPassLocation location, NamedPass pass) {
    passes.computeIfAbsent(location, k -> new ArrayList<>()).add(pass);
  }
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