code: public static boolean release(Object msg, int decrement) {
          if (msg instanceof ReferenceCounted) {
              return ((ReferenceCounted) msg).release(decrement);
          }
          return false;
      }
docs: Try to call {@link ReferenceCounted#release(int)} if the specified message implements {@link ReferenceCounted}.
  If the specified message doesn't implement {@link ReferenceCounted}, this method does nothing.