List<PsiClass> (PsiElement element) { List<PsiClass> targets = super.getTargetClasses(element); PsiMethodReferenceExpression call = getMethodReference(); if (call == null) return Collections.emptyList(); return targets; }