docs: private static boolean isNestedTypeDependency(String type, List<Type> nestedTypes) {
          if (nestedTypes == null) {
              return false;
          }
  
          for (Type t : nestedTypes) {
              if (type.equals(t.getName())) {
                  return true;
              }
          }
  
          return false;
      }