JComponent (@NotNull Presentation presentation, @NotNull String place) { return new LinkLabel(presentation.getText(), null) { @Override public void doClick() { DataContext dataContext = DataManager.getInstance().getDataContext(this); Project project = Objects.requireNonNull(CommonDataKeys.PROJECT.getData(dataContext)); doAction(project); HintManagerImpl.getInstanceImpl().hideAllHints(); } }; }