JBIDE-15385 Support annotation @Priority

Improved resolving constants in inner static classes.
Sometimes JDT cannot find a.B.C but finds a.B$C.