code: protected boolean isMultilineLambda(final XClosure closure) {
      final ILeafNode closingBracket = this._nodeModelAccess.nodeForKeyword(closure, "]");
      HiddenLeafs _hiddenLeafsBefore = null;
      if (closingBracket!=null) {
        _hiddenLeafsBefore=this._hiddenLeafAccess.getHiddenLeafsBefore(closingBracket);
      }
      boolean _tripleNotEquals = (_hiddenLeafsBefore != null);
      if (_tripleNotEquals) {
        int _newLines = this._hiddenLeafAccess.getHiddenLeafsBefore(closingBracket).getNewLines();
        return (_newLines > 0);
      }
      boolean _switchResult = false;
      XExpression _expression = closure.getExpression();
      final XExpression block = _expression;
      boolean _matched = false;
      if (block instanceof XBlockExpression) {
        _matched=true;
        _switchResult = ((((XBlockExpression)block).getExpressions().size() > 1) && this.isEachExpressionInOwnLine(((XBlockExpression)block).getExpressions()));
      }
      if (!_matched) {
        _switchResult = false;
      }
      return _switchResult;
    }
docs: checks whether the given lambda should be formatted as a block.
  That includes newlines after and before the brackets, and a fresh line for each expression.