class jdk.internal.module.ModuleBootstrap$SafeModuleFinder implements java.lang.module.ModuleFinder
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: jdk.internal.module.ModuleBootstrap$SafeModuleFinder
  super_class: java.lang.Object
{
  private final java.util.Set<java.lang.module.ModuleReference> mrefs;
    descriptor: Ljava/util/Set;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/Set<Ljava/lang/module/ModuleReference;>;

  private volatile java.util.Map<java.lang.String, java.lang.module.ModuleReference> nameToModule;
    descriptor: Ljava/util/Map;
    flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
    Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/module/ModuleReference;>;

  void <init>(java.lang.module.ModuleFinder);
    descriptor: (Ljava/lang/module/ModuleFinder;)V
    flags: (0x0000) 
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // jdk.internal.module.ModuleBootstrap$SafeModuleFinder this
        start local 1 // java.lang.module.ModuleFinder finder
         0: .line 1000
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 1001
            aload 0 /* this */
            aload 1 /* finder */
            invokeinterface java.lang.module.ModuleFinder.findAll:()Ljava/util/Set;
            invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
            putfield jdk.internal.module.ModuleBootstrap$SafeModuleFinder.mrefs:Ljava/util/Set;
         2: .line 1002
            return
        end local 1 // java.lang.module.ModuleFinder finder
        end local 0 // jdk.internal.module.ModuleBootstrap$SafeModuleFinder this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    3     0    this  Ljdk/internal/module/ModuleBootstrap$SafeModuleFinder;
            0    3     1  finder  Ljava/lang/module/ModuleFinder;
    MethodParameters:
        Name  Flags
      finder  

  public java.util.Optional<java.lang.module.ModuleReference> find(java.lang.String);
    descriptor: (Ljava/lang/String;)Ljava/util/Optional;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=3, args_size=2
        start local 0 // jdk.internal.module.ModuleBootstrap$SafeModuleFinder this
        start local 1 // java.lang.String name
         0: .line 1005
            aload 1 /* name */
            invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
            pop
         1: .line 1006
            aload 0 /* this */
            getfield jdk.internal.module.ModuleBootstrap$SafeModuleFinder.nameToModule:Ljava/util/Map;
            astore 2 /* nameToModule */
        start local 2 // java.util.Map nameToModule
         2: .line 1007
            aload 2 /* nameToModule */
            ifnonnull 8
         3: .line 1008
            aload 0 /* this */
            aload 0 /* this */
            getfield jdk.internal.module.ModuleBootstrap$SafeModuleFinder.mrefs:Ljava/util/Set;
            invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
         4: .line 1009
            invokedynamic apply()Ljava/util/function/Function;
              Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
                Method arguments:
                  (Ljava/lang/Object;)Ljava/lang/Object;
                  jdk/internal/module/ModuleBootstrap$SafeModuleFinder.lambda$0(Ljava/lang/module/ModuleReference;)Ljava/lang/String; (6)
                  (Ljava/lang/module/ModuleReference;)Ljava/lang/String;
         5: .line 1010
            invokestatic java.util.function.Function.identity:()Ljava/util/function/Function;
         6: .line 1009
            invokestatic java.util.stream.Collectors.toMap:(Ljava/util/function/Function;Ljava/util/function/Function;)Ljava/util/stream/Collector;
            invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
            checkcast java.util.Map
            dup
            astore 2 /* nameToModule */
         7: .line 1008
            putfield jdk.internal.module.ModuleBootstrap$SafeModuleFinder.nameToModule:Ljava/util/Map;
         8: .line 1012
      StackMap locals: java.util.Map
      StackMap stack:
            aload 2 /* nameToModule */
            aload 1 /* name */
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.lang.module.ModuleReference
            invokestatic java.util.Optional.ofNullable:(Ljava/lang/Object;)Ljava/util/Optional;
            areturn
        end local 2 // java.util.Map nameToModule
        end local 1 // java.lang.String name
        end local 0 // jdk.internal.module.ModuleBootstrap$SafeModuleFinder this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0    9     0          this  Ljdk/internal/module/ModuleBootstrap$SafeModuleFinder;
            0    9     1          name  Ljava/lang/String;
            2    9     2  nameToModule  Ljava/util/Map<Ljava/lang/String;Ljava/lang/module/ModuleReference;>;
    Signature: (Ljava/lang/String;)Ljava/util/Optional<Ljava/lang/module/ModuleReference;>;
    MethodParameters:
      Name  Flags
      name  

  public java.util.Set<java.lang.module.ModuleReference> findAll();
    descriptor: ()Ljava/util/Set;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // jdk.internal.module.ModuleBootstrap$SafeModuleFinder this
         0: .line 1016
            aload 0 /* this */
            getfield jdk.internal.module.ModuleBootstrap$SafeModuleFinder.mrefs:Ljava/util/Set;
            areturn
        end local 0 // jdk.internal.module.ModuleBootstrap$SafeModuleFinder this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljdk/internal/module/ModuleBootstrap$SafeModuleFinder;
    Signature: ()Ljava/util/Set<Ljava/lang/module/ModuleReference;>;

  private static java.lang.String lambda$0(java.lang.module.ModuleReference);
    descriptor: (Ljava/lang/module/ModuleReference;)Ljava/lang/String;
    flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // java.lang.module.ModuleReference m
         0: .line 1009
            aload 0 /* m */
            invokevirtual java.lang.module.ModuleReference.descriptor:()Ljava/lang/module/ModuleDescriptor;
            invokevirtual java.lang.module.ModuleDescriptor.name:()Ljava/lang/String;
            areturn
        end local 0 // java.lang.module.ModuleReference m
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0     m  Ljava/lang/module/ModuleReference;
}
SourceFile: "ModuleBootstrap.java"
NestHost: jdk.internal.module.ModuleBootstrap
InnerClasses:
  public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
  SafeModuleFinder = jdk.internal.module.ModuleBootstrap$SafeModuleFinder of jdk.internal.module.ModuleBootstrap