int (@NotNull PsiMethod method) { AtomicInteger count = new AtomicInteger(); OverridingMethodsSearch.search(method).forEach((Consumer<? super PsiMethod>)__ -> count.incrementAndGet()); return count.get(); }