VariableInfo[] (Project myProject, VariableData[] myVariableData, Map<PsiVariable, VariableInfo> myVariableToInfoMap) { JavaCodeStyleManager codeStyleManager = JavaCodeStyleManager.getInstance(myProject); VariableInfo[] infos = new VariableInfo[myVariableData.length]; for (int idx = 0; idx < myVariableData.length; idx++) { VariableData data = myVariableData[idx]; VariableInfo info = myVariableToInfoMap.get(data.variable); info.passAsParameter = data.passAsParameter; info.parameterName = data.name; String propertyName = codeStyleManager.variableNameToPropertyName(data.name, VariableKind.PARAMETER); info.fieldName = codeStyleManager.propertyNameToVariableName(propertyName, VariableKind.FIELD); infos[idx] = info; } return infos; }