These are custom annotations that are not part of the standard JDK. To be able to use them in your code, you need to add a dependency.
At jcip.net, there is a link to the library and its source in the bottom part of the page "Concurrency annotations: jar, javadoc, source".
Direct links:
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…