void (@NotNull PsiReferenceExpression expression) { super.visitReferenceExpression(expression); if (expression.resolve() == null) { final PsiVariable variable = outVarsNames.get(expression.getReferenceName()); if (variable != null) { final String call2Getter = objectName + "." + GenerateMembersUtil.suggestGetterName(getPureName(variable), variable.getType(), myProject) + "()"; final PsiExpression callToGetter = myElementFactory.createExpressionFromText(call2Getter, variable); replaceMap.put(expression, callToGetter); } } }