Type juggleArrayType ( Type partialType , List < ArrayType . ArrayBracketPair > additionalBrackets ) { Pair < Type , List < ArrayType . ArrayBracketPair > > partialParts = unwrapArrayTypes ( partialType ) ; Type elementType = partialParts . a ; List < ArrayType . ArrayBracketPair > leftMostBrackets = partialParts . b ; return wrapInArrayTypes ( elementType , leftMostBrackets , additionalBrackets ) . clone ( ) ; }
Throws together a Type taking care of all the array brackets