docs: private boolean resolveToOuterNested(ClassNode type) {
          CompileUnit compileUnit = currentClass.getCompileUnit();
          String typeName = type.getName();
  
          ModuleNode module = currentClass.getModule();
          for (ImportNode importNode : module.getStaticImports().values()) {
              String importFieldName = importNode.getFieldName();
              String importAlias = importNode.getAlias();
  
              if (!typeName.equals(importAlias)) continue;
  
              ConstructedOuterNestedClassNode constructedOuterNestedClassNode = tryToConstructOuterNestedClassNodeViaStaticImport(compileUnit, importNode, importFieldName);
              if (null != constructedOuterNestedClassNode) {
                  compileUnit.addClassNodeToResolve(constructedOuterNestedClassNode);
                  return true;
              }
          }
  
          for (Map.Entry<String, ClassNode> entry : compileUnit.getClassesToCompile().entrySet()) {
              ClassNode outerClassNode = entry.getValue();
              ConstructedOuterNestedClassNode constructedOuterNestedClassNode = tryToConstructOuterNestedClassNode(type, outerClassNode);
              if (null != constructedOuterNestedClassNode) {
                  compileUnit.addClassNodeToResolve(constructedOuterNestedClassNode);
                  return true;
              }
          }
  
          boolean toResolveFurther = false;
          for (ImportNode importNode : module.getStaticStarImports().values()) {
              ConstructedOuterNestedClassNode constructedOuterNestedClassNode = tryToConstructOuterNestedClassNodeViaStaticImport(compileUnit, importNode, typeName);
              if (null != constructedOuterNestedClassNode) {
                  compileUnit.addClassNodeToResolve(constructedOuterNestedClassNode);
                  toResolveFurther = true; // do not return here to try all static star imports because currently we do not know which outer class the class to resolve is declared in.
              }
          }
  
          return toResolveFurther;
      }