FilePath () { ContentRevision beforeRevision = myShelvedChange != null ? myShelvedChange.getChange().getBeforeRevision() : null; if (beforeRevision != null) { return beforeRevision.getFile(); } String beforePath = getBeforePath(); if (beforePath == null) return null; return VcsUtil.getFilePath(beforePath, false); }