void (PsiElement element) { element.accept(new <warning descr="Recursive visitors with 'visitReturnStatement' most probably should specifically process anonymous/local classes ('visitClass') and lambda expressions ('visitLambdaExpression')">JavaRecursiveElementWalkingVisitor</warning>() { @Override public void visitReturnStatement(@NotNull PsiReturnStatement statement) { // do something } @Override public void visitLambdaExpression(PsiLambdaExpression expression) { // do something } }); }