void () { final VirtualFile[] f = new VirtualFile[1]; ApplicationManager.getApplication().runWriteAction(() -> CommandProcessor.getInstance().executeCommand(myProject, new RunnableAdapter() { @Override public void doRun() throws IOException { f[0] = createChildData(myRoot, "f1.txt"); f[0].setBinaryContent(new byte[]{1}); f[0].setBinaryContent(new byte[]{2}); } }, "name", null)); assertThat(getRevisionsFor(f[0])).hasSize(2); }