synchronized void notifyPainted(@NotNull T object) {
    Integer size = myNotPaintedCache.remove(object);
    if (size == null) {
      size = myPaintedCache.remove(object);
    }
    if (size != null) {
      myPaintedCache.put(object, size);
    }
  }
synchronized void notifyPainted(@NotNull T object)