title: Cannot resolve symbol "LayoutInflater inflater,ViewGroup container"
body: <p>I have a method "displayEventInvitationList" that have parameters "inflater,container" when i am call that method like "displayEventInvitationList(LayoutInflater inflater,ViewGroup container)" in  "onoptionsitemselected" i am getting error cannot resolve symbol "inflater,container".Please suggest me the code how to solve that problem.</p>
  
  <pre><code> public boolean onOptionsItemSelected(MenuItem item) {
          Log.d("onOptionsItemSelected", "yes");
  
          switch (item.getItemId()) {
              case R.id.all:
                  //I am getting "cannot resolve symbol" here  
                  displayEventInvitationList(LayoutInflater inflater,ViewGroup container); 
                  return true;
              case R.id.event:
                  displayEventList();
                  return true;
              case R.id.invitation:
                  displayInvitationList();
                  return true;
              default:
                  return super.onOptionsItemSelected(item);
  
          }
  
      }
  public View displayEventInvitationList(LayoutInflater inflater, ViewGroup container) {
          context = getActivity().getApplicationContext();
          view = inflater.inflate(R.layout.chatwindow_tab, container, false);
          sharedpreferences = context.getSharedPreferences(Constants.SHARED_PREFERENCE_NAME,
                  Context.MODE_PRIVATE);
          DatabaseHelper dbHelper = new DatabaseHelper(context);
          final UserMO userMO = dbHelper.getRingeeUserData(1);
          new AsyncTask&lt;Void, Void, List&lt;EventMO&gt;&gt;() {
              @Override
              protected List&lt;EventMO&gt; doInBackground(Void... arg0) {
                  eventMOs = gson.fromJson(eventDelegates.getAllEventFromUser(userMO, context), new TypeToken&lt;List&lt;EventMO&gt;&gt;() {
                  }.getType());
                  invitationMOs = gson.fromJson(eventDelegates.getAllEventForUser(userMO, context), new TypeToken&lt;List&lt;EventMO&gt;&gt;() {
                  }.getType());
                  List&lt;EventMO&gt; groupEventInvitesList = new ArrayList&lt;&gt;();
  
                  for (EventMO eventMO : eventMOs) {
                      groupEventInvitesList.add(eventMO);
  
                  }
                  for (EventMO eventMO : invitationMOs) {
                      groupEventInvitesList.add(eventMO);
  
                  }
  
                  return groupEventInvitesList;
  
              }
  
              @Override
              protected void onPostExecute(List&lt;EventMO&gt; groupEventInvitesList) {
                  groupEventMoList = groupEventInvitesList;
                  chatDisplayAdapter = new ChatDisplayAdapter();
                  groupEventView.setAdapter(chatDisplayAdapter);
                  groupEventView.setAdapter(dataAdapter);
                  groupEventView.setItemsCanFocus(true);
                  groupEventView.setTextFilterEnabled(true);
                  groupEventView.setOnItemClickListener(groupEventView.getOnItemClickListener());
              }
          }.execute(null, null, null);
          return view;
      }
  </code></pre>