In the following scenario, I want to quickly autocomplete datastore, but Android Studio still offers 2 more options above it. This is usually even more, depending on the name of the variable.
Is it possible to prioritize locally declared variables over external classes, so that I get the datastore suggested first in the example, not Datastore, DataOutputStream (classes) and then datastore (variable)?
For reference, this is a popup that appears when entering data and press CTRL + Space (Windows) in Android Studio.

source
share