void (BigDecimal qux) { final BigDecimal foo = new BigDecimal(3); final BigDecimal bar = new BigDecimal(3); foo.equals(bar); if(foo.eq<caret>uals(bar)) { return; } if(!Objects.equals(foo, bar)) { System.out.println("not equals"); } if(Objects.equals(qux, bar)) { System.out.println("equals"); } }