void setCompletionListener(@NotNull Image image, @NotNull Runnable runnable) {
    if (image instanceof ManagedImage) {
      ((ManagedImage)image).completionRunnable = runnable;
    }
  }
void setCompletionListener(@NotNull Image image, @NotNull Runnable runnable)