def METHOD_NAME():
    """Return show_icons setting from addon preferences"""
    addon = bpy.context.preferences.addons.get(addon_name)
    if addon and hasattr(addon, "preferences"):
        return addon.preferences.show_icons