private ProxyFilter updateProxyFilter(final ProxyFilter currentFilter,
                                          final ProxyFilterType filterType) {
        if (currentFilter != null && currentFilter.getFilterType().getType() == filterType.getType()) {
            return currentFilter;
        } else {
            return new ProxyFilter(filterType);
        }
    }
Checks and returns a new filter or the existing filter

@param currentFilter Proxy filter that is currently set on this node
@param filterType    Type of {@link ProxyFilterType} that was received by the status message
mesh/src/main/java/no/nordicsemi/android/mesh/transport/DefaultNoOperationMessageState.java