title: How do I create a custom PMD rule to check if an instance of DSLContext is begin referenced in a loop?
body: <p>I am trying to create a custom PMD rule that will cause a violation if an instance of <code>org.jooq.DSLContext</code> is being referenced in a loop.</p>
  <p>I am completely new to PMD so I have no idea where to start.</p>
  <p>Can anyone help?</p>