def run(self, args):
    possible_alternates = self.current_file().possible_alternate_files()
    alternates = self.project_files(lambda file: file in possible_alternates)
    if alternates:
      self.window().open_file(alternates.pop())
    else:
      sublime.error_message("could not find " + str(possible_alternates))
dataset/ETHPy150Open NicoSantangelo/sublime-jasmine/legacy_run_jasmine.py/LegacyJasmineSwitchCommand.run/original