Community
Participate
Working Groups
The implementation is AST based we could add a fallback solution that is based on code resolve.
For example, when there is a missing semicolon you should still be able to do an organize import.
Here are two specific cases: MyNewType MyNewType. After typing either of those statement fragments, ctl-shift-o should do its thing so that you get context help after the '.' The first fragment complains about "missing semicolon". Second gives a different complaint.
See bug 48242 for why I think we should not change 'Organize import' but improve code assist. *** This bug has been marked as a duplicate of 48242 ***