向所选元素添加注解,例如 @Nullable/@NotNull。 注解将存储在单独的 annotations.xml 文件中。

如果在设置 | 编辑器 | 代码样式 | Java | 代码生成中启用了使用外部注解选项,则此意图将在编辑器中可用。