boolean () { final boolean wasStarted = traceWasStarted(); if (!wasStarted) { final String errorMessage = "Code bug: .lookupStarted() must be called before. " + this; if (THROW_ON_INCORRECT_USAGE) { throw new AssertionError(errorMessage); } else { THROTTLED_LOG.warn(errorMessage); } } return wasStarted; }