code: public static IType parseTypeLiteral(String typeName) {
      try {
        IType type = GosuParserFactory.createParser(typeName).parseTypeLiteral(null).getType().getType();
        if (type instanceof IErrorType) {
          throw new RuntimeException("Type not found: " + typeName);
        }
        return type;
      } catch (ParseResultsException e) {
        throw new RuntimeException("Type not found: " + typeName, e);
      }
    }
docs: Parses a type name such as Iterable&lt;Claim&gt;.
  @param typeName the name to parse
  @return the type