void (final XmlFile file, final Set<PsiFile> visited) { if (file != null) { final XmlDocument document = file.getDocument(); collectDependencies(document != null ? document.getRootTag():null, file, visited); } }