boolean (PsiElement node) { if (node instanceof LeafElement) { final IElementType elementType = ((LeafElement)node).getElementType(); if (myDuplicatesProfile.getLiterals().contains(elementType)) { return true; } } return false; }