Source code for Confluence macro plugins

According to here,
I can access to source code for Confluence macro, looking for specifically tasklist. I’m working on creating something similar to tasklist and would love to see the source code.

Can someone tell me where I can obtain the code? I checked the server where we have Confluence running, but was unable to locate plugins directory nor tasklist java file.