@Override
  public GrMethod @NotNull [] getMethods() {
    return withGreenStubOrAst(
      stub -> stub.getChildrenByType(GroovyStubElementTypes.METHOD, GrMethod.ARRAY_FACTORY),
      ast -> ast.getChildrenAsPsiElements(GroovyStubElementTypes.METHOD, GrMethod.ARRAY_FACTORY)
    );
  }
@Override
  public GrMethod @NotNull [] getMethods()