API availability is defined
by the version specified in the @since
tag in the documentation. This may be useful because
the language level can differ from your project SDK, and there may be no such API in the JDK that is used to run the code.
Use the Forbid API usages option to forbid usages of the API in respect to the project or custom language level.