docs: private boolean allTypesExist(Collection<? extends Element> elements) {
      for (Element element : elements) {
        if (element.asType().getKind() == TypeKind.ERROR) {
          return false;
        }
      }
      return true;
    }