@NotNull
  public static PsiType createTraitType(@NotNull List<PsiType> types) {
    return createTraitType(types.toArray(PsiType.createArray(types.size())));
  }
@NotNull
  public static PsiType createTraitType(@NotNull List<PsiType> types)