added extracting of type for anonymous inner classes and interfaces