Reports if expressions that has constant condition and can be simplified.

While occasionally intended, this construction is confusing and often the result of a typo.

Example:


  fun example() {
      if (true) {
          throw IllegalStateException("Unexpected state")
      }
  }

A quick-fix removes the if condition:


  fun example() {
      throw IllegalStateException("Unexpected state")
  }