public void directlyJoinParts(SelectorPart first, SelectorPart second) {
if (second.hasElement()) {
String secondName = second.hasElement() ? second.getElementName().getName() : "";
if (first.hasSubsequent()) {
ElementSubsequent subsequent = first.getLastSubsequent();
subsequent.extendName(secondName);
} else {
first.extendName(secondName, second.getUnderlyingStructure());
}
}