static TestScope toggle(TestScope runType) { final index = TestScope.values.indexOf(runType); return TestScope .values[index == TestScope.values.length - 1 ? 0 : index + 1]; }