title: After updating cucumber-groovy I get "Access to 'PickleStepTestStep' exceeds its access rights"
body: <p>After updating cucumber-groovy from version <code>4.7.1</code> to <code>6.1.2</code> I started getting an error <code>Access to 'PickleStepTestStep' exceeds its access rights</code>. In old version it was in <code>cucumber.api.PickleStepTestStep</code> and now in <code>io.cucumber.core.runner.PickleStepTestStep</code></p>
  <p>As I see <code>PickleStepTestStep</code> now is a private class.</p>
  <p>How can I get the current step name now?</p>
  <p>Example of how I use it:</p>
  <pre class="lang-java prettyprint-override"><code>class ErrorLogger {
  
      List&lt;String&gt; errorHolder = new ArrayList&lt;&gt;()
  
      PickleStepTestStep currentStepDef
  
      int currentStepDefIndex = 0
  
      void setNewStepState(TestCase testCase) {
          List&lt;PickleStepTestStep&gt; stepDefs = testCase.getTestSteps().findAll { it instanceof PickleStepTestStep } as List&lt;PickleStepTestStep&gt;
  
          currentStepDef = stepDefs.get(currentStepDefIndex)
          newStep = true
          currentStepDefIndex++
      }
  
      private void addNewStepInfoToList() {
          errorHolder.add('############################################################')
          errorHolder.add('[ERROR] STEP NAME: ' + currentStepDef.getStepText())
          newStep = false
      }
  }
  </code></pre>
  <p>The same problem I have with TestCase class.</p>
  <p>The imports are as follows:</p>
  <pre><code>    cucumber_groovy          : &quot;io.cucumber:cucumber-groovy:6.1.2&quot;,
      cucumber_junit           : &quot;io.cucumber:cucumber-junit:4.7.1&quot;,
      groovy                   : 'org.codehaus.groovy:groovy-all:3.0.5',
  </code></pre>