void (@NotNull PsiElement element, @NotNull Collection<? super RelatedItemLineMarkerInfo<?>> result) { UElement uElement = UastUtils.getUParentForIdentifier(element); if (uElement instanceof UField uField) { if (!isExtensionPointNameDeclarationField(uField)) return; process(resolveEpFqn(uField), uField, element.getProject(), result); } else if (uElement instanceof UCallExpression uCallExpression) { if (!isExtensionPointNameDeclarationViaSuperCall(uCallExpression)) return; UDeclaration uDeclaration = UastUtils.getParentOfType(uCallExpression, UDeclaration.class); assert uDeclaration != null : uElement.asSourceString(); process(resolveEpFqn(uCallExpression), uDeclaration, element.getProject(), result); } }