def METHOD_NAME(self,
                   rule: OnlineCTCEndpointRule,
                   rule_name: str,
                   decoding_something: bool,
                   trailine_silence: int,
                   utterance_length: int) -> bool:
    ans = (
        decoding_something or (not rule.must_contain_nonsilence)
    ) and trailine_silence >= rule.min_trailing_silence and utterance_length >= rule.min_utterance_length
    if (ans):
        logger.info(f"Endpoint Rule: {rule_name} activated: {rule}")
    return ans