Adapt to changes in Gerrit core

Adapt to implementing a fake index, specifically change I4bfff345.

Change-Id: Ifecc617be9ca5f28a936c2df24b9b6ff7b4593fb
diff --git a/java/com/google/gerrit/plugins/checks/CheckerQuery.java b/java/com/google/gerrit/plugins/checks/CheckerQuery.java
index 56f065d..c7560de 100644
--- a/java/com/google/gerrit/plugins/checks/CheckerQuery.java
+++ b/java/com/google/gerrit/plugins/checks/CheckerQuery.java
@@ -39,10 +39,10 @@
 import com.google.gerrit.server.AnonymousUser;
 import com.google.gerrit.server.index.change.ChangeField;
 import com.google.gerrit.server.query.change.ChangeData;
+import com.google.gerrit.server.query.change.ChangePredicates;
 import com.google.gerrit.server.query.change.ChangeQueryBuilder;
 import com.google.gerrit.server.query.change.ChangeQueryProcessor;
 import com.google.gerrit.server.query.change.ChangeStatusPredicate;
-import com.google.gerrit.server.query.change.ProjectPredicate;
 import com.google.gerrit.server.update.RetryHelper;
 import com.google.gerrit.server.update.RetryableAction.ActionType;
 import com.google.inject.Inject;
@@ -280,7 +280,7 @@
   private Predicate<ChangeData> createQueryPredicate(
       CheckerUuid checkerUuid, Project.NameKey repository, Optional<String> optionalQuery)
       throws ConfigInvalidException {
-    Predicate<ChangeData> predicate = new ProjectPredicate(repository.get());
+    Predicate<ChangeData> predicate = ChangePredicates.project(Project.nameKey(repository.get()));
 
     if (optionalQuery.isPresent()) {
       String query = optionalQuery.get();