Tests if the given element has the package-private visibility.
@param element
@return true if package-private, false otherwise
@author vvakame
436049
public static boolean isPackagePrivate(Element element) {
		if (isPublic(element)) {
			return false;
		} else if (isProtected(element)) {
			return false;
		} else if (isPrivate(element)) {
			return false;
		}
		return true;
	}
692554
function(element) {

        return !this._in[element.id] || joint.util.isEmpty(this._in[element.id]);
    }
230240
public static String getPackage(String element) {
        Preconditions.checkNotNull(element,"argument 'element' can not be null");
        return element.substring(0, element.lastIndexOf('.'));
    }
330091
public boolean contains(int element) {
    return element >= 0 && this.imported(element) && this.pos.get(Math.abs(element)) >= 0;
  }
1316369
protected boolean hasStereotype(Element element, Class<? extends Annotation> stereotype) {
        return hasStereotype(element, stereotype.getName());
    }
753667
public static boolean isEnum(Element element) {
		if (element == null) {
			return false;
		} else if (element.getKind() == ElementKind.ENUM) {
			return true;
		} else {
			return false;
		}
	}
324779
public function has($element)
    {
        $index = Arrays::getIndexOf($this->elements, $element);

        return null !== $index && false !== $index;
    }
1235927
function(element) {

        return !this._out[element.id] || joint.util.isEmpty(this._out[element.id]);
    }
424866
def is_private(self):
        
        self.switch_to()
        with self.selenium.context(self.selenium.CONTEXT_CHROME):
            return self.selenium.execute_script(
                """
                Components.utils.import("resource://gre/modules/PrivateBrowsingUtils.jsm");

                let chromeWindow = arguments[0].ownerDocument.defaultView;
                return PrivateBrowsingUtils.isWindowPrivate(chromeWindow);
                """,
                self.document_element,
            )
1084255
private boolean hidden(String className) {
	className = removeTemplate(className);
	ClassInfo ci = classnames.get(className);
	return ci != null ? ci.hidden : optionProvider.getOptionsFor(className).matchesHideExpression(className);
    }
888765
public boolean contains(T element) {
    if (element == null) { return false; }
    return comparator.compare(element, min) > -1 && comparator.compare(element, max) < 1;
  }
564269
public boolean supported(Object element) {
      for (Class c : getSupportedClasses()) {
         if (c.isAssignableFrom(element.getClass())) {
            if (log.isLoggable(Level.FINE)) {
               log.fine(element.getClass().getName() + " will be styled, it is assignable from " + c.getName());
            }
            return true;
         }
      }
      return false;
   }
1182667
protected boolean hasVisibleElements(BaseUIComponent component) {
        for (BaseUIComponent child : component.getChildren(BaseUIComponent.class)) {
            ElementUI ele = getAssociatedElement(child);
            
            if (ele != null && ele.isVisible()) {
                return true;
            }
            
            if (hasVisibleElements(child)) {
                return true;
            }
        }
        
        return false;
    }
348791
boolean isPackagePrivate(Element element) {
        Set<Modifier> modifiers = element.getModifiers();
        return !(modifiers.contains(PUBLIC)
            || modifiers.contains(PROTECTED)
            || modifiers.contains(PRIVATE));
    }
140303
public boolean containsElement(Element element) {
        String deepName = getDeepName(element);
        return elementNameSortOrderMap.containsKey(deepName);
    }
804524
public void hasLastElement(@NullableDecl Object element) {
    if (actualAsNavigableSet().isEmpty()) {
      failWithActual("expected to have last element", element);
      return;
    }

    if (!Objects.equal(actualAsNavigableSet().last(), element)) {
      if (actualAsNavigableSet().contains(element)) {
        failWithoutActual(
            simpleFact(
                lenientFormat(
                    "Not true that %s has last element <%s>. "
                        + "It does contain this element, but the last element is <%s>",
                    actualAsString(), element, actualAsNavigableSet().last())));
        return;
      }
      failWithoutActual(
          simpleFact(
              lenientFormat(
                  "Not true that %s has last element <%s>. "
                      + "It does not contain this element, and the last element is <%s>",
                  actualAsString(), element, actualAsNavigableSet().last())));
    }
  }
245272
function isVisible(element){
    if (getComputedStyle(element, 'visibility') != 'visible')
      return false;

    var box = getBoundingRect(element);

    if (!box.width || !box.height)
      return false;

    return true;
  }