Source:
<code><START> private void fetchEvents(Chapter homeGdg, <END> final RemoteViews views, final AppWidgetManager manager, final ComponentName thisWidget) { App.getInstance().getGdgXHub() .getChapterEventList(homeGdg.getGplusId(), new DateTime(), new DateTime().plusMonths(1)) .enqueue(new Callback<PagedList<Event>>() { @Override public void success(PagedList<Event> eventsPagedList) { List<Event> events = eventsPagedList.getItems(); Timber.d("Got events"); if (events.size() > 0) { Event firstEvent = getNextEvent(events); if (firstEvent != null) { views.setTextViewText(R.id.title, firstEvent.getTitle()); views.setTextViewText(R.id.location, firstEvent.getLocation()); views.setTextViewText(R.id.startDate, firstEvent.getStart().toLocalDateTime() .toString(DateTimeFormat.patternForStyle("MS", getResources().getConfiguration().locale))); showChild(views, 1); Intent i = new Intent(UpdateService.this, EventActivity.class); i.putExtra(Const.EXTRA_EVENT_ID, firstEvent.getId()); views.setOnClickPendingIntent(R.id.container, PendingIntent.getActivity(UpdateService.this, 0, i, 0)); } else { showErrorChild(views, R.string.no_scheduled_events, UpdateService.this); } } else { showErrorChild(views, R.string.no_scheduled_events, UpdateService.this); } manager.updateAppWidget(thisWidget, views); } @Override public void failure(Throwable error) { showErrorChild(views, R.string.loading_data_failed, UpdateService.this); manager.updateAppWidget(thisWidget, views); } @Override public void networkFailure(Throwable error) { showErrorChild(views, R.string.offline_alert, UpdateService.this); manager.updateAppWidget(thisWidget, views); } }); }</code><technical_language>please put a line break methods</technical_language>

Target:
private void fetchEvents(Chapter homeGdg, final RemoteViews views, final AppWidgetManager manager, final ComponentName thisWidget) { App.getInstance().getGdgXHub() .getChapterEventList(homeGdg.getGplusId(), new DateTime(), new DateTime().plusMonths(1)) .enqueue(new Callback<PagedList<Event>>() { @Override public void success(PagedList<Event> eventsPagedList) { List<Event> events = eventsPagedList.getItems(); Timber.d("Got events"); if (events.size() > 0) { Event nextEvent = getNextEvent(events); if (nextEvent != null) { views.setTextViewText(R.id.title, nextEvent.getTitle()); views.setTextViewText(R.id.location, nextEvent.getLocation()); views.setTextViewText(R.id.startDate, nextEvent.getStart().toLocalDateTime() .toString(DateTimeFormat.patternForStyle("MS", getResources().getConfiguration().locale))); showChild(views, 1); Intent i = new Intent(UpdateService.this, EventActivity.class); i.putExtra(Const.EXTRA_EVENT_ID, nextEvent.getId()); views.setOnClickPendingIntent(R.id.container, PendingIntent.getActivity(UpdateService.this, 0, i, 0)); } else { showErrorChild(views, R.string.no_scheduled_events, UpdateService.this); } } else { showErrorChild(views, R.string.no_scheduled_events, UpdateService.this); } manager.updateAppWidget(thisWidget, views); } @Override public void failure(Throwable error) { showErrorChild(views, R.string.loading_data_failed, UpdateService.this); manager.updateAppWidget(thisWidget, views); } @Override public void networkFailure(Throwable error) { showErrorChild(views, R.string.offline_alert, UpdateService.this); manager.updateAppWidget(thisWidget, views); } }); }