@Override
  public void update(Editor editor, Presentation presentation, DataContext dataContext) {
    super.update(editor, presentation, dataContext);
    final PsiFile file = getFile(dataContext);
    if (!XmlGtTypedHandler.fileContainsXmlLanguage(file)) {
      presentation.setEnabledAndVisible(false);
    }
  }
@Override
  public void update(Editor editor, Presentation presentation, DataContext dataContext)