public static void runHighlightingTypeMigration( final Project project, final Editor editor, final TypeMigrationRules rules, final PsiElement root, final PsiType migrationType, final boolean optimizeImports) { runHighlightingTypeMigration( project, editor, rules, new PsiElement[] {root}, Functions.constant(migrationType), optimizeImports); }