// ĠCopyright Ġ 2 0 0 0 - 2 0 2 0 ĠJetBrains Ġs . r . o . ĠUse Ġof Ġthis Ġsource Ġcode Ġis Ġgoverned Ġby Ġthe ĠApache Ġ 2 . 0 Ġlicense Ġthat Ġcan Ġbe Ġfound Ġin Ġthe ĠLICENSE Ġfile . Ċ package Ġcom . intellij . code Insight . hints Ċ Ċ import Ġcom . intellij . code Insight . hints . presentation . Sequence Presentation Ċ import Ġcom . intellij . openapi . editor . In lay Ċ Ċ class ĠInline In lay Renderer ( ĊĠ Ġconstr ained Present ations : ĠCollection < Constr ained Presentation < *, ĠHorizontal Constraints >> Ċ ) Ġ: ĠLinear Order In lay Renderer < Horizontal Constraints >( ĊĠ Ġconstr ained Present ations Ġ= Ġconstr ained Present ations , ĊĠ Ġcreate Presentation Ġ= Ġ{ Ġconstr ained Ġ-> ĊĠĠĠ Ġwhen Ġ( constrained . size ) Ġ{ ĊĠĠĠĠĠĠ 1 Ġ-> Ġconstr ained . first (). root ĊĠĠĠĠĠ Ġelse Ġ-> ĠSequence Presentation ( constrained . map Ġ{ Ġit . root Ġ}) ĊĠĠĠ Ġ} ĊĠ Ġ}, ĊĠ Ġcomparator Ġ= ĠCOMP AR IS ON Ċ ) Ġ{ ĊĠ Ġoverride Ġfun Ġis Accept able Placement ( placement : ĠIn lay . Placement ): ĠBoolean Ġ{ ĊĠĠĠ Ġreturn Ġplacement Ġ== ĠIn lay . Placement . INLINE ĊĠ Ġ} ĊĊĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠ Ġprivate Ġval ĠCOMP AR IS ON : Ġ( Constr ained Presentation < *, ĠHorizontal Constraints >) Ġ-> ĠInt Ġ= Ġ{ Ġit . priority Ġ} ĊĠ Ġ} Ċ } ĊĊ