docs: private String extractName(GroovySourceAST typeNode) {
          String typeName = buildName(typeNode);
          if (!typeName.contains("/")) {
              String slashName = "/" + typeName;
              // Groovy currently resolves this to last found so traverse in reverse order
              for (int i = importedClassesAndPackages.size() - 1; i >= 0; i--) {
                  String name = importedClassesAndPackages.get(i);
                  if (!aliases.containsValue(name) && name.endsWith(slashName)) {
                      typeName = name;
                      break;
                  }
              }
          }
          return typeName;
      }