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