public static String renderPackage ( final Class < ? > type ) { return PACKAGE_FORMATTER . abbreviate ( type . isMemberClass ( ) && ! type . isAnonymousClass ( ) ? type . getDeclaringClass ( ) . getName ( ) : type . getPackage ( ) . getName ( ) ) ; }
If provided type is inner class then declaring class will be rendered instead of package .