ByteArraySequence (@NotNull FileContent inputData) { @Nullable PsiJavaFileStub stub = index(inputData.getFile(), inputData.getContent()); if (stub == null) return null; BufferExposingByteArrayOutputStream buffer = new BufferExposingByteArrayOutputStream(); myStubTreeSerializer.serialize(stub, buffer); return buffer.toByteArraySequence(); }