boolean (@NotNull ExtractMethodSnapshot from, boolean showErrorHint) { applyFromSnapshot(from); PsiFile psiFile = myElements[0].getContainingFile(); ExtractMethodSnapshot.SNAPSHOT_KEY.set(psiFile, from); try { if (!prepare(USE_SNAPSHOT_TARGET_CLASS, showErrorHint)) { return false; } } finally { ExtractMethodSnapshot.SNAPSHOT_KEY.set(psiFile, null); } myStatic = from.myStatic; myInputVariables.setFoldingAvailable(from.myFoldable); return true; }