Increase priority of given packages while suggesting imports

Currently when user wants to use Button instance, java.awt is suggested default import:

In case my plugin is running I would like to prioritize my Button implementation:

My current implementation (not working in 2025.3):

You could check how to add AWT to ignored imports automatically when your plugin recognizes Vaadin project. I’d say it would be more helpful.

It is available in UI

  • File → Settings
  • Editor → Code Style → Java
  • Open the Imports tab.
  • In the section “Exclude from import and completion”, click

It does not answer the question but solves problem, thank you