class RuboCop::Cop::Sorbet::ForbidIncludeConstLiteral

def within_onymous_module?(node)

Returns true if the node is within a module declaration that is not anonymous.
def within_onymous_module?(node)
  parent = node.parent
  parent = parent.parent while parent&.begin_type? || parent&.block_type?
  parent && (parent.module_type? || parent.class_type? || parent.sclass_type?)
end