Implemented abstract methods introduced in newer IDEA.
Not building light class for local class (to fix exception in tests).