code: private Type filterSame(Type t, Type s) {
          if (t == null || s == null) {
              return t;
          }
  
          return types.isSameType(t, s) ? null : t;
      }
docs: returns null if t is same as 's', returns 't' otherwise