Handle Java type shadowing in the editor

When asking for the typeinfo for a Java type, it's possible that the
type we have is in a lower module than the current module. In the
editor, we always want the typeinfo for the current module.