@Nullable
  @Override
  public Collection<PsiElement> getTargetCandidates(@NotNull PsiReference reference) {
    if (reference instanceof GrReferenceExpression referenceExpression) {
      if (referenceExpression.hasMemberPointer()) {
        GroovyResolveResult[] results = referenceExpression.multiResolve(false);
        if (results.length > 0) {
          return collapseReflectedMethods(mapNotNull(results, it -> it.getElement()));
        }
      }
    }
    return super.getTargetCandidates(reference);
  }
@Nullable
  @Override
  public Collection<PsiElement> getTargetCandidates(@NotNull PsiReference reference)