ItemLatestState (@NotNull File file) { Status svnStatus = getFileStatus(file, true); if (svnStatus == null || itemExists(svnStatus)) { // IDEADEV-21785 (no idea why this can happen) final Info info = myVcs.getInfo(file, Revision.HEAD); if (info == null || info.getUrl() == null) { LOG.info("No SVN status returned for " + file.getPath()); return defaultResult(); } return createResult(info.getCommitInfo().getRevision(), true, false); } return createResult(getLastExistingRevision(file, svnStatus), false, false); }