Set<PsiCall> (@NotNull final PsiMethod psiMethod, @NotNull SearchScope searchScope) { final Set<PsiCall> callExpressions = new HashSet<>(); final CommonProcessors.CollectUniquesProcessor<PsiReference> consumer = new CommonProcessors.CollectUniquesProcessor<>(); MethodReferencesSearch.search(psiMethod, searchScope, true).forEach(consumer); for (PsiReference psiReference : consumer.getResults()) { final PsiCall methodCallExpression = PsiTreeUtil.getParentOfType(psiReference.getElement(), PsiCall.class); if (methodCallExpression != null) { callExpressions.add(methodCallExpression); } } return callExpressions; }