private static Collection<TextRange> selectWithTypeParameters(@NotNull ASTNode astClass) {
    final ASTNode identifier = BasicJavaAstTreeUtil.getNameIdentifier(astClass);
    final ASTNode list = BasicJavaAstTreeUtil.getTypeParameterList(astClass);
    if (identifier != null && list != null) {
      return Collections.singletonList(new TextRange(identifier.getTextRange().getStartOffset(), list.getTextRange().getEndOffset()));
    }
    return Collections.emptyList();
  }
private static Collection<TextRange> selectWithTypeParameters(@NotNull ASTNode astClass)