def METHOD_NAME(self, node):
    """
    Check whether given section should have empty lines trimmed.
    Section should not be trimmed if it contains only language marker and there is no more than
    allowed section empty lines.
    """
    if not isinstance(node, CommentSection) or not Config:
        return True
    language_marker_only = False
    empty_lines = 0
    for statement in node.body:
        if isinstance(statement, Config):
            language_marker_only = True
        elif isinstance(statement, EmptyLine):
            empty_lines += 1
            if empty_lines > self.section_lines:
                return True
        else:
            return True
    return not language_marker_only