static LinkAttributeFilter linkAttributeFilter(String linkAttribute, boolean visible) {
    Preconditions.checkNotNull(linkAttribute, "Attribute name must not be null");
    LinkAttributeFilter linkAttributeFilter = new LinkAttributeFilter();
    linkAttributeFilter.setLinkAttribute(linkAttribute);
    linkAttributeFilter.setVisible(visible);
    return linkAttributeFilter;
  }
@param link the link to examine
@return if this filter applies to the link in the parameter
ambari-server/src/main/java/org/apache/ambari/server/state/quicklinksprofile/Filter.java