Reports non-boolean methods whose names start with a question word. Such method names may be confusing.

Non-boolean methods that override library methods are ignored by this inspection.

Example:

  public void hasName(String name) { assert names.contains(name); }

A quick-fix that renames such methods is available only in the editor.

Configure the inspection: