String (@NotNull PsiVariable var) { if (var instanceof PsiParameter) { return ((PsiParameter)var).getName(); } JavaCodeStyleManager codeStyleManager = JavaCodeStyleManager.getInstance(myProject); VariableKind kind = codeStyleManager.getVariableKind(var); String name = codeStyleManager.variableNameToPropertyName(var.getName(), kind); name = codeStyleManager.propertyNameToVariableName(name, VariableKind.PARAMETER); return name; }