boolean (PsiMethod method, PsiAnonymousClass aClass) { final ForbiddenRefsChecker checker = new ForbiddenRefsChecker(method, aClass); final PsiCodeBlock body = method.getBody(); LOG.assertTrue(body != null); body.accept(checker); return checker.hasForbiddenRefs(); }