void () { for (final PsiElement patternComponent : myPattern) { patternComponent.accept(new PsiRecursiveElementWalkingVisitor() { @Override public void visitElement(@NotNull PsiElement element) { super.visitElement(element); if (myParameters.contains(element.getText())) { element.putUserData(PARAMETER, element); } } }); } }