public int getDimensions() {
        int numDimensions = 1;
        while (valueBuffer.charAt(valueBegin + numDimensions) == '[') {
            numDimensions++;
        }
        return numDimensions;
    }
Computes the size of the arguments and of the return value of a method.

@param methodDescriptor a method descriptor.
@return the size of the arguments of the method (plus one for the implicit this argument),
argumentsSize, and the size of its return value, returnSize, packed into a single int i =
{@code (argumentsSize &lt;&lt; 2) | returnSize} (argumentsSize is therefore equal to {@code
i &gt;&gt; 2}, and returnSize to {@code i &amp; 0x03}).
core/src/main/java/com/alibaba/fastjson2/internal/asm/Type.java