if ( this.map.containsKey( (name) ) ) {
return true;
}
for ( int i = this.buildStack.size() - 1; i >= 0; i-- ) {
final RuleConditionElement rce = buildStack.get( i );
final Declaration declaration = rce.getInnerDeclarations().get( name );
if ( declaration != null ) {
// if it is an OR and it is duplicated, we can stop looking for duplication now
// as it is a separate logical branch
boolean inOr = ((rce instanceof GroupElement) && ((GroupElement) rce).isOr());
if ( ! inOr || type == null ) {