@NotNull
  @Override
  public GrMethodStub createStub(@NotNull GrMethod psi, StubElement parentStub) {

    Set<String> namedParameters = psi.getNamedParameters().keySet();
    return new GrMethodStub(parentStub, StringRef.fromString(psi.getName()), GrStubUtils.getAnnotationNames(psi),
                            ArrayUtilRt.toStringArray(namedParameters), this,
                            GrStubUtils.getTypeText(psi.getReturnTypeElementGroovy()),
                            GrMethodStub.buildFlags(psi));
  }
@NotNull
  @Override
  public GrMethodStub createStub(@NotNull GrMethod psi, StubElement parentStub)