@Nullable
    private static PsiType calcUnaryNumericPromotionType(PsiPrimitiveType type) {
      if (PsiTypes.byteType().equals(type) || PsiTypes.shortType().equals(type) || PsiTypes.charType().equals(type) || PsiTypes.intType()
        .equals(type)) {
        return PsiTypes.intType();
      }
      return null;
    }
@Nullable
    private static PsiType calcUnaryNumericPromotionType(PsiPrimitiveType type)