Collection<TextRange> (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(); }