import org.jetbrains.annotations.NotNull;
public class ComparatorCombinatorsInspection extends BaseJavaBatchLocalInspectionTool {</BUG>
@NotNull
@Override
public PsiElementVisitor buildVisitor(@NotNull final ProblemsHolder holder, boolean isOnTheFly) {
<BUG>return new JavaElementVisitor() {
@Override</BUG>
public void visitLambdaExpression(PsiLambdaExpression lambda) {
super.visitLambdaExpression(lambda);
PsiType type = lambda.getFunctionalInterfaceType();

import org.jetbrains.annotations.NotNull;
import java.util.Collection;
import java.util.Objects;
public class ComparatorCombinatorsInspection extends BaseJavaBatchLocalInspectionTool {
@NotNull
@Override
public PsiElementVisitor buildVisitor(@NotNull final ProblemsHolder holder, boolean isOnTheFly) {
return new JavaElementVisitor() {
@SuppressWarnings("DialogTitleCapitalization")
@Override
public void visitLambdaExpression(PsiLambdaExpression lambda) {
super.visitLambdaExpression(lambda);
PsiType type = lambda.getFunctionalInterfaceType();
