void (@NotNull PsiScopeProcessor processor) { super.processVariants(new DelegatingScopeProcessor(processor) { @Override public boolean execute(@NotNull PsiElement element, @NotNull ResolveState state) { if (element instanceof PsiMethod && name.equals(((PsiMethod)element).getName())) { return super.execute(element, state); } return true; } }); }