synchronized void unregister(@NotNull T object) {
    Integer oldSize = myNotPaintedCache.remove(object);
    if (oldSize != null) myTotalSize -= oldSize;
    oldSize = myPaintedCache.remove(object);
    if (oldSize != null) myTotalSize -= oldSize;
  }
synchronized void unregister(@NotNull T object)