diff --git a/java/java-impl/src/com/intellij/refactoring/typeMigration/TypeMigrationLabeler.java b/java/java-impl/src/com/intellij/refactoring/typeMigration/TypeMigrationLabeler.java index 681e5a5a74af..f80fbf7a2a92 100644 --- a/java/java-impl/src/com/intellij/refactoring/typeMigration/TypeMigrationLabeler.java +++ b/java/java-impl/src/com/intellij/refactoring/typeMigration/TypeMigrationLabeler.java @@ -755,7 +755,7 @@ public class TypeMigrationLabeler { public void setRootAndMigrate(final TypeMigrationUsageInfo newRootUsageInfo, final PsiType migrationType, final PsiReference[] usages) { final TypeMigrationUsageInfo oldRoot = getCurrentRoot(); - setCurrentRoot(newRootUsageInfo); + myCurrentRoot = newRootUsageInfo; PsiElement root = newRootUsageInfo.getElement(); if (root instanceof PsiMethod) { migrateMethodReturnExpression(migrationType, (PsiMethod)root); @@ -904,10 +904,6 @@ public class TypeMigrationLabeler { return myRootsTree; } - public void setCurrentRoot(final TypeMigrationUsageInfo currentRoot) { - myCurrentRoot = currentRoot; - } - TypeMigrationUsageInfo getCurrentRoot() { return myCurrentRoot; }