@classmethod
def get_detail_elems(cls, *args):
    """
        An optional first argument is the user interface plugin, a
        :class:`Plugin` instance.  If this is None, will use
        :attr:`settings.SITE.kernel.default_ui
        <lino.core.kernel.Kernel.default_ui>`.

        Returns a list of the widgets (layout elements) that make up
        the detail layout.
        """
    lh = cls.get_detail_layout(*args)
    return lh.main.elements
