PsiType (@NotNull PsiType migrationType, @NotNull Project project) { if (!migrationType.isValid()) { migrationType = JavaPsiFacade.getElementFactory(project).createTypeByFQClassName(migrationType.getCanonicalText()); } return migrationType; }