Adds an annotation, for example @Nullable or @NotNull, to the selected element. The annotation will be stored in a separate annotations.xml file.

This intention is available for library code. To enable it for project code use the Use external annotations option under Settings | Editor | Code Style | Java | Code Generation.