class StackUtils {

    public static boolean isConstantString(OpcodeStack.Item item) {
        return item.getConstant() != null && item.getConstant() instanceof String;
    }

    /**
     * @param item Stack item (parameter passed to the current function)
     * @return If the given string reference is not a constant
     */
    public static boolean isVariableString(OpcodeStack.Item item) {
        return !isConstantString(item);
    }

    public static boolean isConstantInteger(OpcodeStack.Item item) {
        return item.getConstant() != null && item.getConstant() instanceof Integer;
    }

    public static LocalVariableGen getLocalVariable(MethodGen methodGen, int index) {<FILL_FUNCTION_BODY>}

}

        for(LocalVariableGen local : methodGen.getLocalVariables()) {
            if(local.getIndex() == index) {
                return local;
            }
        }
        return null;
    
<no_super_class>