public static <NodeType> INodeFilter<NodeType> getNegatedFilter(
      final INodeFilter<NodeType> filter) {
    Preconditions.checkNotNull(filter, "Error: Filter argument can't be null");

    return new INodeFilter<NodeType>() {
      @Override
      public boolean qualifies(final NodeType node) {
        return !filter.qualifies(node);
      }
    };
  }
Creates a filter that negates another filter.

@param <NodeType> The type of the nodes that are filtered by the returned filter.
@param filter The filter that's negated.
@return A filter that negates the input filter.
java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/zygraph/helpers/StandardFilters.java