M (@Nullable XmlFile file) { if (file == null) return null; final XmlFile originalFile = (XmlFile)file.getOriginalFile(); final S scope = getModelScope(originalFile); return computeModel(originalFile, scope); }