void () { CodeStyleSettings settings = CodeStyle.getSettings(getProject()); CommonCodeStyleSettings javaCommon = settings.getCommonSettings(JavaLanguage.INSTANCE); javaCommon.ALIGN_MULTILINE_CHAINED_METHODS = true; doTextTest("java", """ class T { public void main() { ActionBarPullToRefresh.from(getActivity()) .theseChildrenArePullable(eventsListView) .listener(this) .useViewDelegate(StickyListHeadersListView.class, new AbsListViewDelegate())<caret> .setup(mPullToRefreshLayout); } }""", """ class T { public void main() { ActionBarPullToRefresh.from(getActivity()) .theseChildrenArePullable(eventsListView) .listener(this) .useViewDelegate(StickyListHeadersListView.class, new AbsListViewDelegate()) <caret> .setup(mPullToRefreshLayout); } }"""); }