void () { final File sourceFile = new File(myWorkingCopyDir.getPath(), "source" + File.separator + "s1.txt"); final File externalFile = new File(myWorkingCopyDir.getPath(), "source" + File.separator + "external" + File.separator + "t12.txt"); final LocalFileSystem lfs = LocalFileSystem.getInstance(); final VirtualFile vf1 = lfs.refreshAndFindFileByIoFile(sourceFile); final VirtualFile vf2 = lfs.refreshAndFindFileByIoFile(externalFile); assertNotNull(vf1); assertNotNull(vf2); editFileInCommand(vf1, "test externals 123" + System.currentTimeMillis()); editFileInCommand(vf2, "test externals 123" + System.currentTimeMillis()); refreshChanges(); final Change change1 = changeListManager.getChange(vf1); final Change change2 = changeListManager.getChange(vf2); assertNotNull(change1); assertNotNull(change2); assertNotNull(change1.getBeforeRevision()); assertNotNull(change2.getBeforeRevision()); assertNotNull(change1.getAfterRevision()); assertNotNull(change2.getAfterRevision()); }