question: public void addParentRelations ( ArrayList < Relation > relations ) { if ( parentRelations == null ) { parentRelations = new ArrayList < Relation > ( ) ; } for ( Relation r : relations ) { if ( ! parentRelations . contains ( r ) ) { addParentRelation ( r ) ; } } }
target:  Add all parent relations, avoids dups