public static void invalidateCaches(Predicate<? super CachesInvalidator> isAllowedInvalidator) {
    for (CachesInvalidator invalidator : CachesInvalidator.EP_NAME.getExtensionList()) {
      if (isAllowedInvalidator.test(invalidator)) {
        try {
          invalidator.invalidateCaches();
        }
        catch (Throwable t) {
          LOG.warn("Failed to invalidate caches with " + invalidator.getClass().getName() + ". " + t.getMessage(), t);
        }
      }
    }
  }
public static void invalidateCaches(Predicate<? super CachesInvalidator> isAllowedInvalidator)