void (VirtualFile @NotNull ... files) { ClientState state = getClientState(); if (state == null) { return; } if (!isInsideCommand()) { LOG.error("Must be called inside command"); return; } List<DocumentReference> refs = new ArrayList<>(files.length); for (VirtualFile each : files) { refs.add(DocumentReferenceManager.getInstance().create(each)); } state.myCurrentMerger.addAdditionalAffectedDocuments(refs); }