Sometimes you might want to ignore the hard-coded literals. To do that, use Not requiring internationalization annotation.
- Press
⌥⏎ or ⌥⏎⌥⏎ or ⌥⏎⌘1 or ⌘1⌥ Enter, ⌥⏎ or ⌥⏎⌥ Enter, ⌥⏎ or ⌥⏎
to show intention actions for the string literal:

- Select Annotate as @NonNls from the suggestion list.
- In the Select Path dialog that opens, specify the location where
annotations.xmlfile will be stored.
Alternatively, you can add
@NonNls
annotation:

If you have selected the check box Do not show this dialog in the future, you can still choose annotation style in the Preferences dialog (Code Style | Java - Code Generation).