String ( @NotNull ConfigurationContext context, @NotNull PsiMethod element, @NotNull List<? extends PsiClass> chosenElements ) { PsiClass psiClass = Objects.requireNonNull(element.getContainingClass()); List<? extends PsiClass> elements = chosenElements.isEmpty() ? List.of(psiClass) : chosenElements; return StringUtil.join(elements, aClass -> aClass.getName() + "." + element.getName(), "|"); }