For example the following will be reported by this inspection: if (s != null && s.equals("literal")) {} And the quickfix will replace that with: if ("literal".equals(s)) {}
if (s != null && s.equals("literal")) {}
if ("literal".equals(s)) {}