void () { final String baseName; if (originalClassName.indexOf('.') == 0) { baseName = StringUtil.decapitalize(originalClassName); } else { final String simpleClassName = originalClassName.substring(originalClassName.lastIndexOf('.') + 1); baseName = StringUtil.decapitalize(simpleClassName); } String name = myJavaCodeStyleManager.propertyNameToVariableName(baseName, VariableKind.FIELD); if (!existsFieldWithName(name)) { backPointerName = name; return; } int counter = 1; while (true) { name += counter; if (!existsFieldWithName(name)) { backPointerName = name; return; } counter++; } }