docs: private LookupResult tryAsLoaderClassOrScript(String name, CompilationUnit compilationUnit) {
          GroovyClassLoader loader = compilationUnit.getClassLoader();
  
          Map<String, Boolean> options = compilationUnit.configuration.getOptimizationOptions();
          boolean useAsm = !Boolean.FALSE.equals(options.get("asmResolving"));
          boolean useClassLoader = !Boolean.FALSE.equals(options.get("classLoaderResolving"));
  
          LookupResult result = useAsm ? findDecompiled(name, compilationUnit, loader) : null;
          if (result != null) {
              return result;
          }
  
          if (!useClassLoader) {
              return tryAsScript(name, compilationUnit, null);
          }
  
          return findByClassLoading(name, compilationUnit, loader);
      }