@Override
    public void visitMethodReferenceExpression(@NotNull PsiMethodReferenceExpression expression) {
      super.visitMethodReferenceExpression(expression);
      if (PsiTypes.voidType().equals(LambdaUtil.getFunctionalInterfaceReturnType(expression))) {
        if (expression.isConstructor()) {
          PsiElement qualifier = expression.getQualifier();
          if (qualifier instanceof PsiReferenceExpression ref && ref.resolve() instanceof PsiClass cls &&
              !ignoredClasses.contains(cls.getQualifiedName())) {
            registerError(expression, expression);
          }
          if (qualifier instanceof PsiTypeElement typeElement && typeElement.getType() instanceof PsiArrayType) {
            registerError(expression, expression);
          }
        }
      }
    }
@Override
    public void visitMethodReferenceExpression(@NotNull PsiMethodReferenceExpression expression)