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;
}

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 ; }
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 .
