IntelliJ and Android Studio

When the analyzer detects a deprecated API,
a light bulb appears on that line of code.
Clicking the light bulb displays the suggested fix
that updates that code to the new API.
Clicking the suggested fix performs the update.

A sample quick-fix in IntelliJ

VS Code

When the analyzer detects a deprecated API,
it presents an error.
You can do any of the following:

Hover over the error and then click the
Quick Fix link.
This presents a filtered list showing
only fixes.

Put the caret in the code with the error and click
the light bulb icon that appears.
This shows a list of all actions, including
refactors.

Put the caret in the code with the error and
press the shortcut
(Command+. on macOS, Control+. elsewhere)
This shows a list of all actions, including
refactors.

A sample code action in VS Code