ASTStructure (@NotNull ASTNode oldRoot, @NotNull ProgressIndicator indicator) { return new ASTStructure(oldRoot) { @Override public int getChildren(@NotNull ASTNode astNode, @NotNull Ref<ASTNode[]> into) { indicator.checkCanceled(); return super.getChildren(astNode, into); } }; }