code: private static void addEquivalentsComplexes(PhysicalEntity pe, boolean outer,
  		Set<PhysicalEntity> pes)
  	{
  		Set<PhysicalEntity> set = outer ? 
  			pe.getMemberPhysicalEntityOf() : pe.getMemberPhysicalEntity();
  
  		for (PhysicalEntity related : set)
  		{
  			for (Complex cmp : related.getComponentOf())
  			{
  				getRelatedPhysicalEntities(cmp, pes);
  			}
  
  			addEquivalentsComplexes(related, outer, pes);
  		}
  	}
docs: Adds equivalents and parent complexes of the given PhysicalEntity to the parameter set. This
  method traverses homologies only to one direction (either towards parents or to the
  children).
  @param pe The PhysicalEntity to add its equivalents and complexes
  @param outer Give true if towards parents, false if to the children
  @param pes Set to collect equivalents and complexes