Adding support for inner anonymous classes

Closes #27 
This method name shouldn't change. It's not clear what it actually does.