boolean (String varName) { return myUsedNames.contains(varName) || JavaLexer.isKeyword(varName, LanguageLevel.HIGHEST) || !varName.equals(JavaCodeStyleManager.getInstance(getProject()) .suggestUniqueVariableName(varName, myChainExpression, v -> PsiTreeUtil.isAncestor(myChainExpression, v, true))); }