static @Nullable PsiElement getCurrentPsiElement(final Editor editor, final PsiFile file) {
    final int offset = editor.getCaretModel().getOffset();
    final PsiElement psiElement = file.findElementAt(offset);
    return PsiTreeUtil.getParentOfType(psiElement, XmlTag.class);
  }
static @Nullable PsiElement getCurrentPsiElement(final Editor editor, final PsiFile file)