void () { String baseName = BASE_PATH + getTestName(true); String ext = findExtension(); String fileName = baseName + "."+ext; try { String afterFileName = baseName + "_afterUp." + ext; EditorActionHandler handler = new MoveStatementUpAction().getHandler(); performAction(fileName, handler, afterFileName); afterFileName = baseName + "_afterDown." + ext; handler = new MoveStatementDownAction().getHandler(); performAction(fileName, handler, afterFileName); } finally { CodeStyleSettingsManager.getInstance(getProject()).dropTemporarySettings(); } }