In many of our projects, we end up with multiple classes on the classpath that have the same simple name but different fully qualified names. For example, We may have two classes on the classpath "org.foo.Foo" and "org.bar.Foo". In some cases, we know which of these is the "correct" one to import for our developers. We'd like to write a plugin that would either hide or deprioritize (as in, lower in the list) other import suggestions that Idea provides when it assists for an unresolved simple name.
For example, if I have this code:
Foo f = new Foo();
IntelliJ will give me the option of importing either org.bar.Foo or org.foo.Foo. I'd like to write a plugin that would hide org.bar.Foo from the list of suggestions, or at least lower it in the list.
Is this possible?