The problem occurs when you are trying to import class you referenced in @EditClass inside of handler.
The key (i think) is to remove class loading from processInjectionClass() (or just make it load all imports after all minecraft classes were initialized tho im not sure if thats even possible).
Note that it can be avoided by using Reflector instead of referencing classes like normal.