void (List<? super UsageInfo> usages, PsiMethod... methods) { for (PsiMethod method : methods) { PsiClass containingClass = method.getContainingClass(); FunctionalExpressionSearch.search(method).forEach(expression -> { usages.add(new SafeDeleteFunctionalExpressionUsageInfo(expression, containingClass, false)); return true; }); } }