private void add(GrReferenceElement referenceExpression) {
    final PsiElement resolved = referenceExpression.resolve();
    if (resolved != null) {
      myResult.add(resolved);
    }
  }
private void add(GrReferenceElement referenceExpression)