static LinkNameFilter linkNameFilter(String linkName, String linkUrl, boolean visible) {
    Preconditions.checkNotNull(linkName, "Link name must not be null");
    LinkNameFilter linkNameFilter = new LinkNameFilter();
    linkNameFilter.setLinkName(linkName);
    linkNameFilter.setLinkUrl(linkUrl);
    linkNameFilter.setVisible(visible);
    return linkNameFilter;
  }
@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