Buggy code:
public class MainActivity extends AppCompatActivity { private RecyclerView mList ; private MainActivity . SimpleAdapter mAdapter ; private Toolbar mToolbar ; private FloatingActionButton mAddReminderButton ; private int mTempPost ; private LinkedHashMap < Integer , Integer > IDmap = new LinkedHashMap < > ( ) ; private ReminderDatabase rb ; private MultiSelector mMultiSelector = new MultiSelector ( ) ; private AlarmReceiver mAlarmReceiver ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } @ Override public void onCreateContextMenu ( ContextMenu menu , View v , ContextMenu . ContextMenuInfo menuInfo ) { } private Callback mDeleteMode = new ModalMultiSelectorCallback ( mMultiSelector ) { @ Override public boolean onCreateActionMode ( ActionMode actionMode , Menu menu ) { } @ Override public boolean onActionItemClicked ( ActionMode actionMode , MenuItem menuItem ) { } } ; private void selectReminder ( int mClickID ) { } @ Override public void onActivityResult ( int requestCode , int resultCode , Intent data ) { } @ Override public void onResume ( ) { } protected LayoutManager getLayoutManager ( ) { } protected int getDefaultItemCount ( ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { switch ( item . getItemId ( ) ) { case id . action_licenses : <START_BUG> Intent intent = new Intent ( this , LicencesActivity . class ) ; <END_BUG> startActivity ( intent ) ; return true ; default : return super . onOptionsItemSelected ( item ) ; } } public class SimpleAdapter extends RecyclerView . Adapter < MainActivity . SimpleAdapter . VerticalItemHolder > { private ArrayList < MainActivity . SimpleAdapter . ReminderItem > mItems ; public SimpleAdapter ( ) { } public void setItemCount ( int count ) { } public void onDeleteItem ( int count ) { } public void removeItemSelected ( int selected ) { } @ Override public MainActivity . SimpleAdapter . VerticalItemHolder onCreateViewHolder ( ViewGroup container , int viewType ) { } @ Override public void onBindViewHolder ( MainActivity . SimpleAdapter . VerticalItemHolder itemHolder , int position ) { } @ Override public int getItemCount ( ) { } public class ReminderItem { public String mTitle ; public String mDateTime ; public String mRepeat ; public String mRepeatNo ; public String mRepeatType ; public String mActive ; public ReminderItem ( String Title , String DateTime , String Repeat , String RepeatNo , String RepeatType , String Active ) { } } public class DateTimeComparator implements Comparator { DateFormat f = new SimpleDateFormat ( "dd//mm//yyyy<seq2seq4repair_space>hh:mm" ) ; public int compare ( Object a , Object b ) { } } public class VerticalItemHolder extends SwappingHolder implements View . OnClickListener , View . OnLongClickListener { private TextView mTitleText ; private TextView mDateAndTimeText ; private TextView mRepeatInfoText ; private ImageView mActiveImage ; private ImageView mThumbnailImage ; private ColorGenerator mColorGenerator = ColorGenerator . DEFAULT ; private TextDrawable mDrawableBuilder ; private MainActivity . SimpleAdapter mAdapter ; public VerticalItemHolder ( View itemView , MainActivity . SimpleAdapter adapter ) { } @ Override public void onClick ( View v ) { } @ Override public boolean onLongClick ( View v ) { } public void setReminderTitle ( String title ) { } public void setReminderDateTime ( String datetime ) { } public void setReminderRepeatInfo ( String repeat , String repeatNo , String repeatType ) { } public void setActiveImage ( String active ) { } } public MainActivity . SimpleAdapter . ReminderItem generateDummyData ( ) { } public List < MainActivity . SimpleAdapter . ReminderItem > generateData ( int count ) { } } }

Fix:
Intent intent = new Intent ( this , LicensesActivity . class ) ;