private static PsiType adjustMigrationTypeIfGenericArrayCreation(PsiType migrationType, PsiExpression expression) {
    if (expression instanceof PsiNewExpression) {
      if (migrationType instanceof PsiArrayType) {
        final PsiType componentType = migrationType.getDeepComponentType();
        if (componentType instanceof PsiClassType) {
          final PsiClassType rawType = ((PsiClassType)componentType).rawType();
          if (!rawType.equals(componentType)) {
            return PsiTypesUtil.createArrayType(rawType, migrationType.getArrayDimensions());
          }
        }
      }
    }
    return migrationType;
  }
private static PsiType adjustMigrationTypeIfGenericArrayCreation(PsiType migrationType, PsiExpression expression)