void (@NotNull final Project project, @NotNull final PsiElement element, @Nullable @Nls final String documentation) { if (StringUtil.isEmpty(documentation)) return; // modal dialogs with fragment editors fix: can't guess proper modality state here UIUtil.invokeLaterIfNeeded(() -> { DocumentationComponent component = getActiveDocComponent(project); if (component != null) { component.replaceText(documentation, element); } }); }