@Override
    public boolean loadImage(@NotNull InputStream inputStream) {
        super.loadImage(inputStream);
        return true;
    }
Image editor, based on image viewer.
plugins/org.jkiss.dbeaver.ui.editors.image/src/org/jkiss/dbeaver/ui/controls/imageview/BrowserImageEditor.java