Collection<TextRange> (List<ASTNode> children, @NotNull CharSequence editorText) { int start = CodeBlockOrInitializerSelectioner.findOpeningBrace(children); // in non-Java PsiClasses, there can be no opening brace if (start != 0) { int end = CodeBlockOrInitializerSelectioner.findClosingBrace(children, start); return expandToWholeLinesWithBlanks(editorText, new TextRange(start, end)); } return Collections.emptyList(); }