private void grantReadAccess(@NotNull PsiClass outerClass,
                               @NotNull PsiMethodCallExpression generatedCall,
                               @NotNull PsiElementFactory elementFactory) {
    PsiMethod newMethod = createPsiMethod(FieldAccessType.GET, outerClass, elementFactory);
    if (newMethod == null) return;

    outerClass.add(newMethod);

    String object = MemberQualifierUtil.findObjectExpression(myExpression, myField, outerClass, generatedCall, elementFactory);
    String methodCall = newMethod.getName() + "(" + (object == null ? "null" : object) + ", null)";
    myExpression.replace(elementFactory.createExpressionFromText(methodCall, myExpression));
  }
private void grantReadAccess(@NotNull PsiClass outerClass,
                               @NotNull PsiMethodCallExpression generatedCall,
                               @NotNull PsiElementFactory elementFactory)