public static String getDisplayName ( TypeDeclaration type ) { if ( type == null || type . displayName ( ) == null ) { return null ; } else { return type . displayName ( ) . value ( ) ; } }
Safely get Display name from a type with null checks