Change (@NotNull Project project, @NotNull VirtualFile file) { VcsCurrentRevisionProxy before = VcsCurrentRevisionProxy.create(file, project); if (before != null) { ContentRevision afterRevision = new CurrentContentRevision(VcsUtil.getFilePath(file)); return new Change(before, afterRevision, FileStatus.HIJACKED); } return null; }