MarkdownHeaderStubElement (@NotNull StubInputStream dataStream, StubElement parentStub) { String indexedName = null; String indexedAnchorReference = null; try { indexedName = dataStream.readUTFFast(); indexedAnchorReference = dataStream.readUTFFast(); } catch (IOException e) { LOG.error("Cannot read data stream; ", e.getMessage()); } final var actualName = StringUtil.isEmpty(indexedName) ? null : indexedName; final var actualAnchorReference = StringUtil.isEmpty(indexedAnchorReference) ? null : indexedAnchorReference; return new MarkdownHeaderStubElement( parentStub, this, actualName, actualAnchorReference ); }