public static byte[] loadRevisionContent(@NotNull VcsFileRevision revision) throws VcsException, IOException { byte[] content = revision.getContent(); if (content == null) { revision.loadContent(); content = revision.getContent(); } if (content == null) throw new VcsException( "Failed to load content for revision " + revision.getRevisionNumber().asString()); return content; }