if (leafs.length == index) {
// variant is too short for given QualifiedIdentifier
return false;
}
PsiElement reference = leafPsiElement.resolve();
LeafElementType leafElementType = (LeafElementType) leafPsiElement.getElementType();
if (reference == null) {
if (!(leafElementType.isIdentifier() && leafs[index].isIdentifier()) ||
!leafElementType.isSameAs(leafs[index])) {
if(child != children[children.length-1]) {