@SuppressWarnings("unchecked")
    public static <T extends BaseGeocacheFilter> T findInChain(final List<BaseGeocacheFilter> filters, final Class<T> filterClazz) {
        for (BaseGeocacheFilter filter : filters) {
            if (filterClazz.isAssignableFrom(filter.getClass())) {
                return (T) filter;
            }
        }
        return null;
    }
Helper method to be used in conjunction with {@link #getAndChainIfPossible()} by search providers
only offering SPECIFIC filter capabilities. This method searches and returns specific base filters contained in a given filter list
main/src/main/java/cgeo/geocaching/filters/core/GeocacheFilter.java