question: protected List < INode > findMultiLineComments ( EObject eObject ) { INode elementNode = NodeModelUtils . findActualNodeFor ( eObject ) ; HiddenLeafs hLeafs = hla . getHiddenLeafsBefore ( elementNode ) ; if ( ! hLeafs . containsComment ( ) ) { return null ; } List < LeafInfo > leafs = hLeafs . getLeafs ( ) ; List < INode > comments = new ArrayList < > ( ) ; final TerminalRule SL = grammarAccess . getSL_COMMENTRule ( ) ; for ( LeafInfo li : leafs ) { if ( li instanceof CommentInfo ) { INode commentNode = li . getNode ( ) ; EObject ge = commentNode . getGrammarElement ( ) ; if ( ge != SL ) { comments . add ( commentNode ) ; } } } return comments ; }
target:  Finds multi line comments on eObject. Comment is consider multiline by its type (e.g. start-end markers). Actual conents can be either single line, or multiline content.