private static Collection<TextRange> selectWholeBlock(ASTNode clazz) {
    ASTNode lBrace = BasicJavaAstTreeUtil.getLBrace(clazz);
    ASTNode rBrace = BasicJavaAstTreeUtil.getRBrace(clazz);
    if (lBrace != null && rBrace != null) {
      return Collections.singleton(new TextRange(lBrace.getTextRange().getStartOffset(), rBrace.getTextRange().getEndOffset()));
    }
    return Collections.emptyList();
  }
private static Collection<TextRange> selectWholeBlock(ASTNode clazz)