#KJ-55 Local classes - transform them into inner classes. Added tests for all the unresolved cases, added a new subtask to cover all the new tests in separate tasks.