void (StringBuilder sb1, StringBuilder sb2) { if(sb1.<warning descr="Suspicious call to 'equals()' on 'StringBuilder' object">equals</warning>(sb2)) { System.out.println("Strange"); } if("xyz".<warning descr="Suspicious call to 'equals()' on 'StringBuilder' object">equals</warning>(sb1)) { System.out.println("Strange"); } if(Objects.<warning descr="Suspicious call to 'equals()' on 'StringBuilder' object">equals</warning>(sb1, sb2)) { System.out.println("Strange"); } if(java.util.function.Predicate.<warning descr="Suspicious call to 'equals()' on 'StringBuilder' object">isEqual</warning>(sb1).test(sb2)) { System.out.println("Strange"); } }