title: How to enforce private parameters in constructors in Kotlin with ArchUnit?
body: <p>I have this class:</p>
  
  <pre><code>class CreateUser(private val userRepo: UserRepository) {
  
      fun execute(user: User) {
          userRepo.save(user)
      }
  }
  </code></pre>
  
  <p>I have this test:</p>
  
  <pre><code>@Test
  fun `private dependencies at constructors`() {
      constructors()
          .that().areDeclaredInClassesThat().resideInAPackage("users.usecases..")
          .should().haveModifier(JavaModifier.PRIVATE)
          .check(classes)
  }
  </code></pre>
  
  <p>but it does not work since I'm targeting constructors and not their parameters.</p>
  
  <p>Is it possible to target these fields in Kotlin constructors? I'd like to <strong>enforce that the <code>private</code> keyword is used to mark all constructor parameters</strong> (in this case, only userRepo) .</p>