void () { warningIcon = new JBLabel(AllIcons.General.BalloonWarning); IdeTooltipManager.getInstance().setCustomTooltip( warningIcon, new TooltipWithClickableLinks.ForBrowser(warningIcon, PyBundle.message("debugger.warning.message"))); myActionLink = new ActionLink(PyBundle.message("form.debugger.clear.caches.action"), e -> { boolean cleared = PySignatureCacheManager.getInstance(myProject).clearCache(); String message; if (cleared) { message = PyBundle.message("python.debugger.collection.signatures.deleted"); } else { message = PyBundle.message("python.debugger.nothing.to.delete"); } Messages.showInfoMessage(myProject, message, PyBundle.message("debugger.delete.signature.cache")); }); }