boolean () { Set<VirtualFile> affectedFiles = new HashSet<>(); for (DocumentReference each : myAllAffectedDocuments) { VirtualFile file = each.getFile(); if (isVirtualDocumentChange(file)) continue; affectedFiles.add(file); if (affectedFiles.size() > 1) return true; } return false; }