VcsRef (@NotNull Hash hash, @NotNull String longRefPath, @NotNull VirtualFile root) { String name = getRefName(longRefPath); VcsRefType type = GitRefManager.getRefType(name); assert type != null; return myFactory.createRef(hash, GitBranchUtil.stripRefsPrefix(name), type, root); }