public void setNeedsRepaint(boolean needsRepaint, @Nullable JComponent dirtyComponent) {
    myNeedsRepaint = needsRepaint;
    if (myNeedsRepaint) {
      fireNeedsRepaint(dirtyComponent);
    }
  }
public void setNeedsRepaint(boolean needsRepaint, @Nullable JComponent dirtyComponent)