void () { configureByFile(BASE_PATH + "/" + getTestName(false) + ".java"); EditorTestUtil.buildInitialFoldingsInBackground(getEditor()); FoldRegion lambdaStart = getEditor().getFoldingModel().getFoldRegion(140, 227); assertNotNull(lambdaStart); assertFalse(lambdaStart.isExpanded()); FoldRegion lambdaEnd = getEditor().getFoldingModel().getFoldRegion(248, 272); assertNotNull(lambdaEnd); assertFalse(lambdaEnd.isExpanded()); executeAction(IdeActions.ACTION_MOVE_LINE_UP_ACTION); checkResultByFile(BASE_PATH + "/" + getTestName(false) + "-after.java"); }