PsiClass (String qualifiedName) { assertValid(); ApplicationManager.getApplication().assertWriteAccessAllowed(); final MigrationClassImpl migrationClass = new MigrationClassImpl(this, qualifiedName); final MigrationClassImpl oldMigrationClass = myQNameToClassMap.put(qualifiedName, migrationClass); LOG.assertTrue(oldMigrationClass == null, qualifiedName); String packageName = parentPackageName(qualifiedName); final PsiPackage aPackage = myFacade.findPackage(packageName); if (aPackage == null) { createPackage(packageName); } List<PsiClass> psiClasses = getClassesList(packageName); psiClasses.add(migrationClass); myMigrationManager.migrationModified(false); return migrationClass; }