@Override protected void validate(Element element, ElementValidation validation) { if (validatorHelper.elementHasAnnotation(EActivity.class, element.getEnclosingElement()) || validatorHelper.elementHasAnnotation(EFragment.class, element.getEnclosingElement())) { validatorHelper.isNotPrivate(element, validation); validatorHelper.isNotFinal(element, validation); validatorHelper.returnTypeIsVoid((ExecutableElement) element, validation); } }