boolean (List<?> parents, Description currentClass, Description currentParent) { if (parents == null) { return !currentClass.equals(currentParent); } else { return System.identityHashCode(currentClass) != System.identityHashCode(currentParent); } }