Use Objects.equals() in effective statements