def add_indented_commands(self, commands, *, heading, max_size=None):
if not commands:<EOL><INDENT>return<EOL><DEDENT>self.paginator.add_line(heading)<EOL>max_size = max_size or self.get_max_size(commands)<EOL>get_width = discord.utils._string_width<EOL>for command in commands:<EOL><INDENT>name = command.name<EOL>width = max_size - (get_width(name) - len(name))<EOL>entry = '<STR_LIT>'.format(self.indent * '<STR_LIT:U+0020>', name, command.short_doc, width=width)<EOL>self.paginator.add_line(self.shorten_text(entry))<EOL><DEDENT>
Indents a list of commands after the specified heading.

        The formatting is added to the :attr:`paginator`.

        The default implementation is the command name indented by
        :attr:`indent` spaces, padded to ``max_size`` followed by
        the command's :attr:`Command.short_doc` and then shortened
        to fit into the :attr:`width`.

        Parameters
        -----------
        commands: Sequence[:class:`Command`]
            A list of commands to indent for output.
        heading: :class:`str`
            The heading to add to the output. This is only added
            if the list of commands is greater than 0.
        max_size: Optional[:class:`int`]
            The max size to use for the gap between indents.
            If unspecified, calls :meth:`get_max_size` on the
            commands parameter.