String (@NonNls final String name, final PsiNamedElement element) { final JavaCodeStyleManager javaCodeStyleManager = JavaCodeStyleManager.getInstance(element.getProject()); final VariableKind variableKind = element instanceof PsiVariable ? javaCodeStyleManager.getVariableKind((PsiVariable)element) : VariableKind.FIELD; return javaCodeStyleManager.variableNameToPropertyName(name, variableKind); }