79212080

Date: 2024-11-21 16:25:51
Score: 1
Natty:
Report link

According to the IDEA documentation:

you can configure the IDE to automatically add import statements if there are no options to choose from.

Plus in the another part:

You can exclude redundant entries from automatic import so that the list of suggestions contains only relevant items.

As a result, the required behavior might be achieved when all options except the proper one are excluded.

Of course, it would be more convenient to pin one type instead of excluding dozen alternatives, but I didn't find other ways.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Aleksandr Baklanov