We could process the change of UT, find the changed method, and collect the property value from the config attribute.
Example PRs:
checkstyle/checkstyle#4905
checkstyle/checkstyle#4902
checkstyle/checkstyle#4853
checkstyle/checkstyle#4770
checkstyle/checkstyle#4736
We can assume the tests will be in a specific location as it should just be a change of main to test and appending Test to the class name.