def METHOD_NAME(self):
    def auth_is_not_delegated(request):
        return not request.settings.enable_oauth2_client
    usercp.add_section(
        link="misago:usercp-change-forum-options",
        name=pgettext_lazy("user options page", "Forum options"),
        component="forum-options",
        icon="settings",
    )
    usercp.add_section(
        link="misago:usercp-edit-details",
        name=pgettext_lazy("user options page", "Edit details"),
        component="edit-details",
        icon="person_outline",
    )
    usercp.add_section(
        link="misago:usercp-change-username",
        name=pgettext_lazy("user options page", "Change username"),
        component="change-username",
        icon="card_membership",
        visible_if=auth_is_not_delegated,
    )
    usercp.add_section(
        link="misago:usercp-change-email-password",
        name=pgettext_lazy("user options page", "Change email or password"),
        component="sign-in-credentials",
        icon="vpn_key",
        visible_if=auth_is_not_delegated,
    )
    def can_download_own_data(request):
        return request.settings.allow_data_downloads
    usercp.add_section(
        link="misago:usercp-download-data",
        name=pgettext_lazy("user options page", "Download data"),
        component="download-data",
        icon="save_alt",
        visible_if=can_download_own_data,
    )
    def can_delete_own_account(request):
        if not auth_is_not_delegated(request):
            return False
        return request.settings.allow_delete_own_account
    usercp.add_section(
        link="misago:usercp-delete-account",
        name=pgettext_lazy("user options page", "Delete account"),
        component="delete-account",
        icon="cancel",
        visible_if=can_delete_own_account,
    )