Assert.isNotNull(javaElement);
if (javaElement != null && javaElement instanceof NamedMember) {
if (javaElement.getElementName().equals(DocumentHelper.GET_STRING)) {
return true;
} else if (javaElement.getElementType() == IJavaElement.TYPE) {
final NamedMember method = (NamedMember) javaElement;
final IType type = method.getTypeRoot().findPrimaryType();
return hierarchyContainsComponent(type);
} else if (javaElement.getElementType() == IJavaElement.METHOD) {
return isWicketComponent(javaElement);
}
return isWicketJavaElement(javaElement.getParent());