void (@NotNull PsiLambdaExpression lambda) { super.visitLambdaExpression(lambda); final PsiType type = lambda.getFunctionalInterfaceType(); final PsiClass aClass = PsiUtil.resolveClassInClassTypeOnly(type); if (!SerializationUtils.isSerializable(aClass)) { return; } lambda.accept(new LocalVariableReferenceFinder(lambda)); }