default boolean terminationRequested() {
        return false;
    }
TerminatingConsumer is a Consumer {@link Consumer} that can request termination
of the supplier once some condition is reached, for example some number of consumed results
accepted.  If termination is required override the terminationRequested()
method to return true when termination state is reached.

@param <T> the type of the input to the operation
Ghidra/Framework/Utility/src/main/java/utility/function/TerminatingConsumer.java