ContentRevision (IdeaGateway gw) { Entry entry = getRight(); if (myRightContentCurrent && entry != null) { VirtualFile file = gw.findVirtualFile(entry.getPath()); if (file != null) { return new CurrentContentRevision(Paths.createDvcsFilePath(file)); } } return createContentRevision(entry, gw); }