void () { getSettings().ALIGN_MULTILINE_CHAINED_METHODS = true; doMethodTest( """ ActionBarPullToRefresh.from(getActivity()) // Mark the ListView as pullable .theseChildrenArePullable(eventsListView) // Set the OnRefreshListener .listener(this) // Use the AbsListView delegate for StickyListHeadersListView .useViewDelegate(StickyListHeadersListView.class, new AbsListViewDelegate()) // Finally commit the setup to our PullToRefreshLayout .setup(mPullToRefreshLayout);""", """ ActionBarPullToRefresh.from(getActivity()) // Mark the ListView as pullable .theseChildrenArePullable(eventsListView) // Set the OnRefreshListener .listener(this) // Use the AbsListView delegate for StickyListHeadersListView .useViewDelegate(StickyListHeadersListView.class, new AbsListViewDelegate()) // Finally commit the setup to our PullToRefreshLayout .setup(mPullToRefreshLayout);""" ); }