HwFacadeHelper (@NotNull JComponent target) { return JBCefApp.isSupported() ? new HwFacadeHelper(target) : // do not provoke any JBCef* class loading new HwFacadeHelper(target) { @Override public void addNotify() { } @Override public void show() { } @Override public void removeNotify() { } @Override public void hide() { } @Override public void paint(@NotNull Graphics g, @NotNull Consumer<? super Graphics> targetPaint) { targetPaint.accept(g); } }; }