private static boolean isOpenBlock(IElementType type) {
    return type instanceof GrBlockElementType || type == GroovyElementTypes.CONSTRUCTOR_BODY;
  }
private static boolean isOpenBlock(IElementType type)