:memo: Add documentation for the generatePlugin method