Supports generating java classes with extends