boolean (@NotNull Project project, Editor editor, PsiFile file) { if (!(file instanceof XmlFile)) return false; int offset = editor.getCaretModel().getOffset(); String uri = findUri(file, offset); if (uri == null || !isAcceptableUri(uri)) return false; setText(XmlBundle.message(getQuickFixKeyId())); return true; }