def METHOD_NAME(self, buff):
    inits = getInitVals(self.params)
    inits['depth'] = -self.getPosInRoutine()
    code = (
        "{name} = visual.Brush(win=win, name='{name}',\n"
        "   lineWidth={lineWidth},\n"
        "   lineColor={lineColor},\n"
        "   lineColorSpace={lineColorSpace},\n"
        "   opacity={opacity},\n"
        "   buttonRequired={buttonRequired},\n"
        "   depth={depth}\n"
        ")"
    ).format(**inits)
    buff.writeIndentedLines(code)