public static boolean isXmlToken(PsiElement element, @NotNull IElementType tokenType) {
    return element instanceof XmlToken && ((XmlToken)element).getTokenType() == tokenType;
  }
public static boolean isXmlToken(PsiElement element, @NotNull IElementType tokenType)