removed unused method
Revert "removed unused method"

This reverts commit 03b4966365592656434d86dd791607db37f84959.
null safe comparator