/** * Returns {@code true} if the operation allows checking for quorum, * {@code false} if the quorum check does not apply to this operation. */ private static boolean shouldCheckQuorum(Operation op) { return !(op instanceof QuorumCheckAwareOperation) || ((QuorumCheckAwareOperation) op).shouldCheckQuorum(); }