void (@NotNull State state) { if (this.state == state || state == State.CANCELLED || mySuspendButton == null) { return; } this.state = state; if (state == State.PLAYING) { mySuspendButton.setIcons(pauseIcon); setCommentText(null, true); } else { mySuspendButton.setIcons(resumeIcon); setCommentText(IdeBundle.message("comment.text.paused"), true); } mySuspendButton.revalidate(); mySuspendButton.repaint(); }