Reproducer for the issue detekt/detekt#4250
Here is the code: https://github.com/osipxd/detekt-unreachable-code/blob/50e21751cf70759183c8abf07295f992930fedfd/src/main/java/ViewWithError.kt#L9-L15
And here is the error: https://github.com/osipxd/detekt-unreachable-code/runs/4155329209