コード例 #1
0
 @Nullable
 private static PsiMethodCallExpression createGetterCall(
     FieldDescriptor fieldDescriptor,
     PsiReferenceExpression expr,
     PsiClass aClass,
     PsiMethod getter)
     throws IncorrectOperationException {
   final String getterName = fieldDescriptor.getGetterName();
   @NonNls String text = getterName + "()";
   PsiMethodCallExpression methodCall = prepareMethodCall(expr, text);
   methodCall = checkMethodResolvable(methodCall, getter, expr, aClass);
   if (methodCall == null) {
     VisibilityUtil.escalateVisibility(fieldDescriptor.getField(), expr);
   }
   return methodCall;
 }