Collection<PsiFile> (ConvertContext context) { List<PsiFile> result = new ArrayList<>(); PsiFile currentFile = context.getFile().getOriginalFile(); for (DomFileElement<MavenDomProjectModel> each : MavenDomUtil.collectProjectModels(context.getFile().getProject())) { PsiFile file = each.getOriginalFile(); if (file == currentFile) continue; result.add(file); } return result; }