Reverts guardian/typerighter#229, as it's causing an error at runtime when a check is run:
[ERROR] [SECURITY][03/08/2023 15:26:37.155] [application-matcher-pool-dispatcher-24] [akka.actor.ActorSystemImpl(application)] Uncaught error from thread [application-matcher-pool-dispatcher-24]: Class com.google.common.base.Suppliers$SupplierOfInstance does not implement the requested interface java.util.function.Supplier, shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled for ActorSystem[application]
java.lang.IncompatibleClassChangeError: Class com.google.common.base.Suppliers$SupplierOfInstance does not implement the requested interface java.util.function.Supplier
at org.languagetool.rules.RuleMatch.getSuggestedReplacementObjects(RuleMatch.java:405)
at org.languagetool.JLanguageTool$TextCheckCallable.getTextLevelRuleMatches(JLanguageTool.java:1953)
at org.languagetool.JLanguageTool$TextCheckCallable.call(JLanguageTool.java:1905)
at org.languagetool.JLanguageTool$TextCheckCallable.call(JLanguageTool.java:1877)
at org.languagetool.JLanguageTool.performCheck(JLanguageTool.java:1338)
at org.languagetool.JLanguageTool.checkInternal(JLanguageTool.java:1016)
at org.languagetool.JLanguageTool.check(JLanguageTool.java:935)
at org.languagetool.JLanguageTool.check(JLanguageTool.java:920)
at org.languagetool.JLanguageTool.check(JLanguageTool.java:910)
at org.languagetool.JLanguageTool.check(JLanguageTool.java:892)
at org.languagetool.JLanguageTool.check(JLanguageTool.java:849)
at org.languagetool.JLanguageTool.check(JLanguageTool.java:833)
at matchers.LanguageToolMatcher.$anonfun$check$2(LanguageToolMatcher.scala:161)
at scala.collection.immutable.List.flatMap(List.scala:293)
at matchers.LanguageToolMatcher.$anonfun$check$1(LanguageToolMatcher.scala:160)
at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:678)
at scala.concurrent.impl.Promise$Transformation.run(Promise.scala:467)
at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:63)
at akka.dispatch.BatchingExecutor$BlockableBatch.$anonfun$run$1(BatchingExecutor.scala:100)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.scala:18)
at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:94)
at akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:100)
at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:49)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(ForkJoinExecutorConfigurator.scala:48)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175)
Reverts guardian/typerighter#229, as it's causing an error at runtime when a check is run: