void (@NotNull PsiLambdaExpression lambdaExpression) { super.visitLambdaExpression(lambdaExpression); if (isConvertibleLambdaExpression(lambdaExpression)) { PsiParameterList parameterList = lambdaExpression.getParameterList(); PsiElement nextElement = PsiTreeUtil.skipWhitespacesAndCommentsForward(parameterList); if (PsiUtil.isJavaToken(nextElement, JavaTokenType.ARROW)) { if (PsiUtil.isLanguageLevel8OrHigher(nextElement)) { registerErrorAtRange(parameterList, nextElement); } else { registerError(lambdaExpression, ProblemHighlightType.ERROR); } } else { registerError(parameterList); } } }