Fixed detection of nested classes from imported files