void (RefMethod refMethod, List<? super PsiElement> result) { PsiElement psiElement = refMethod.getPsiElement(); if (psiElement == null) return; if (!result.contains(psiElement)) result.add(psiElement); }