Reports methods with a boolean return type, which are only used in a negated context. Because this inspection requires global code analysis it is only available for Analyze|Inspect Code or Analyze|Run Inspection by Name and it will not report in the editor.

For example:

class C {
  boolean inverted() {
    return true;
  }

  void f() {
    if (!inverted()) {
      return;
    }
  }
  boolean member = !inverted();
}