the method caseSwapStay is used in the refactoring of resolveNode