typo corrected
Minor improvement - replaced K with a more specific sort in certain places.
#KJ-55 Local classes - transform them into inner classes. Refactoring: extended methodLookup with a strict wrapped list of arguments, a prerequisite for transformation of local classes.