String (@NotNull String name, PsiNamedElement psiVariable) { final JavaCodeStyleManager codeStyleManager = JavaCodeStyleManager.getInstance(psiVariable.getProject()); final String propertyName = codeStyleManager.variableNameToPropertyName(name, codeStyleManager.getVariableKind((PsiVariable)psiVariable)); if (myToUnpluralize.contains(psiVariable)) { final String singular = StringUtil.unpluralize(propertyName); if (singular != null) return singular; myToUnpluralize.remove(psiVariable); // no need to pluralize since it was initially in singular form } return propertyName; }