inner imprementations of Filter and Comparator should be static