boolean (final PsiElement another) { if (super.isEquivalentTo(another)) return true; PsiElement element1 = this; // TODO: seem to be only necessary for tag dirs equivalents checking. if (element1 instanceof XmlTag && another instanceof XmlTag) { if (!element1.isPhysical() && !another.isPhysical()) return element1.getText().equals(another.getText()); } return false; }