Change code coverage suite for KotlinCoverageExtension

How can I change the settings (which files to check for coverage) of the built-in Coverage plugin when developing my own plugin?

I tried to create JavaCoverageEngine with createSuite and pass filters. The result is empty if the pattern is passed. In addition, the result always includes a report on all classes of the project, even if it was launched on only one test.