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