diff --git a/src/main/java/fr/adrienbrault/idea/symfony2plugin/translation/dict/TranslationUtil.java b/src/main/java/fr/adrienbrault/idea/symfony2plugin/translation/dict/TranslationUtil.java index 0dcd56a2c..28eca8a2d 100644 --- a/src/main/java/fr/adrienbrault/idea/symfony2plugin/translation/dict/TranslationUtil.java +++ b/src/main/java/fr/adrienbrault/idea/symfony2plugin/translation/dict/TranslationUtil.java @@ -190,6 +190,8 @@ public static PsiElement[] getTranslationPsiElements(@NotNull Project project, @ return Arrays.stream(getTranslationProviders()) .map(translationProvider -> translationProvider.getTranslationTargets(project, translationKey, domain)) .flatMap(Collection::stream) + .collect(Collectors.toSet()) + .stream() .map(element -> new TranslationKeyTargetFakePsiNavigationItem(ProjectUtil.getProjectDir(project), element)) .sorted(Comparator.comparingInt(TranslationKeyTargetFakePsiNavigationItem::getWeight)) .toArray(PsiElement[]::new);