AbstractPainter (@NotNull Image image, @NotNull IdeBackgroundUtil.Fill fillType, @NotNull IdeBackgroundUtil.Anchor anchor, float alpha, @NotNull Insets insets) { return new ImagePainter() { @Override public boolean needsRepaint() { return true; } @Override public void executePaint(Component component, Graphics2D g) { executePaint(g, component, image, fillType, anchor, alpha, insets); } }; }