@SuppressWarnings("unchecked")
    public <T extends Filter> T getFilter(Class<T> filterType) {
        for (Filter c : filters.getArray()) {
            if (filterType.isAssignableFrom(c.getClass())) {
                return (T) c;
            }
        }
        return null;
    }
returns the first filter in the list assignable from the given type

@param <T> the filter type
@param filterType the filter type
@return a filter assignable from the given type
jme3-core/src/main/java/com/jme3/post/FilterPostProcessor.java