void (@NotNull Collection<? super DocumentReference> result) { result.addAll(myDocumentStacks.keySet()); DocumentReferenceManager documentReferenceManager = DocumentReferenceManager.getInstance(); for (Document each : myDocumentsWithStacks) { result.add(documentReferenceManager.create(each)); } for (VirtualFile each : myNonlocalVirtualFilesWithStacks) { result.add(documentReferenceManager.create(each)); } }