Hi everyone! I’m trying to write custom rule, that will detect unary expressions, whose result is not used (inspired by Kotlin puzzler from Anton Keks
https://youtu.be/Xq9vBZs0j-8▾
). I tried override different methods in detekt rule, for e.g. visitUnaryExpression, visitExpression, visitReturnExpression, but not be able to catch those cases. I wonder, if anyone can point me to the solution?