I've written a tutorial about how to add an IntelliJ's structural search pattern as an error for TeamCity builds: https://github.com/apache/incubator-druid/blob/a4270da5f3de25f1182cfdf2ac0d9de7781312cf/ci/README_TeamCity.md#creating-a-custom-inspection-from-a-structural-search-pattern
If somebody wants to try it out, you can fix one of the following issues using this technique: - https://github.com/apache/incubator-druid/issues/7316 - https://github.com/apache/incubator-druid/issues/6704
