public static TSModule getNestedTypeContainer ( TSType type , boolean create ) { TSContainerElement parent = ( TSContainerElement ) type . getParent ( ) ; if ( parent == null ) { return null ; } int insertionIndex = parent . getElements ( ) . indexOf ( type ) ; return getModule ( parent , type . getName ( ) , insertionIndex , create ) ; }
Creates a module if the same name as the provided type used to hold nested types .