def get_next(self, source, reverse=False):
        savvy_settings = sublime.load_settings("GitSavvy.sublime-settings")
        tab_order = savvy_settings.get("tab_order")

        if reverse is True:
            tab_order.reverse()

        source_idx = tab_order.index(source)
        next_idx = 0 if source_idx == len(tab_order) - 1 else source_idx + 1

        return tab_order[next_idx]
dataset/ETHPy150Open divmain/GitSavvy/core/interfaces/__init__.py/GsTabCycleCommand.get_next/original