VcsRevisionNumber (VirtualFile vf) { final ProjectLevelVcsManager vcsManager = ProjectLevelVcsManager.getInstance(myProject); final AbstractVcs vcs = vcsManager.getVcsFor(vf); if (vcs == null) return null; if (vcs.getDiffProvider() instanceof DiffMixin) { final VcsRevisionDescription description = ((DiffMixin)vcs.getDiffProvider()).getCurrentRevisionDescription(vf); if (description == null) return null; final Date date = description.getRevisionDate(); return isRecent(date) ? description.getRevisionNumber() : null; } return null; }