List<PsiElement> () { PsiElement member = getMember(); if (getTopMember().equals(member)) { return ContainerUtil.map(getTopLevelItems(), info -> info.getCalledElement()); } if (!(member instanceof PsiMember)) return Collections.emptyList(); final List<PsiElement> callees = computeReferencedCodeSafeToDelete((PsiMember)member); if (callees != null) { callees.remove(getTopMember()); return callees; } else { return Collections.emptyList(); } }