void (@NotNull List<? extends PsiElement> elements, @NotNull Collection<? super LineMarkerInfo<?>> result) { for (PsiElement element : elements) { ElementColorProvider.EP_NAME.computeSafeIfAny(provider -> { Color color = provider.getColorFrom(element); if (color == null) { return null; } MyInfo info = new MyInfo(element, color, provider); NavigateAction.setNavigateAction(info, IdeBundle.message("dialog.title.choose.color"), null, AllIcons.Actions.Colors); result.add(info); return info; }); } }