@Documented @Retention(SOURCE) @Target({METHOD,CONSTRUCTOR,FIELD,TYPE}) public @interface TestOnly
Apart from documentation purposes this annotation is intended to be used by static analysis tools to validate against element contract violations.