void () { assumeTrue("Check only if THROW_ON_INCORRECT_USAGE", IndexLookupTimingsReporting.THROW_ON_INCORRECT_USAGE); //check for 'allKeys' only because all them have same superclass var trace = TRACE_OF_ALL_KEYS_LOOKUP.get(); boolean finishWithoutStartFails; try { trace.lookupFinished(); finishWithoutStartFails = false; } catch (AssertionError e) { finishWithoutStartFails = true; } assumeTrue( ".started() must be called throw exception if THROW_ON_INCORRECT_USAGE=true", finishWithoutStartFails ); }