@Override
  public GrTypeDefinition @NotNull [] getTypeDefinitions() {
    return withGreenStubOrAst(
      stub -> stub.getChildrenByType(TokenSets.TYPE_DEFINITIONS, GrTypeDefinition.ARRAY_FACTORY),
      ast -> ast.getChildrenAsPsiElements(TokenSets.TYPE_DEFINITIONS, GrTypeDefinition.ARRAY_FACTORY)
    );
  }
@Override
  public GrTypeDefinition @NotNull [] getTypeDefinitions()