@NotNull
  public static PsiType createTraitType(@NotNull PsiType type, @NotNull List<? extends PsiType> traits) {
    return createTraitType(ContainerUtil.prepend(traits, type instanceof GrTraitType ? ((GrTraitType)type).myDelegate : type));
  }
@NotNull
  public static PsiType createTraitType(@NotNull PsiType type, @NotNull List<? extends PsiType> traits)