void (XmlFile file) { final XmlFile schema = getRngSchema(file); if (schema == null) return; final VirtualFile instanceFile = file.getVirtualFile(); final VirtualFile schemaFile = schema.getVirtualFile(); if (instanceFile == null || schemaFile == null) { return; } doRun(file.getProject(), instanceFile, schemaFile); }