Fix fromelement in Chapter when there is no ChapterDisplay
Ignore IDE warnings