PsiElementVisitor (PsiElement element) { final StructuralSearchProfile profile = StructuralSearchUtil.getProfileByPsiElement(element); if (profile == null) { LOG.warn("No StructuralSearchProfile found for language " + element.getLanguage().getID()); return null; } return profile.createMatchingVisitor(this); }