Correct argument to visitedParents.contains() should be
DevelopmentComponent not Item --> avoid endless
recursion/StackOverflowError.