ByteArrayOutputStream (@NotNull SvnVcs vcs, @NotNull VirtualFile file) { ByteArrayOutputStream bos = new ByteArrayOutputStream(); try { byte[] contents = SvnUtil.getFileContents(vcs, Target.on(virtualToIoFile(file)), Revision.BASE, Revision.UNDEFINED); bos.write(contents); } catch (VcsException | IOException e) { LOG.warn(e); } return bos; }