Source:
<code>public void onBindViewHolder(TranslationViewHolder holder, int position) { TranslationRowData rowItem = mTranslations.get(position); switch (holder.getItemViewType()) { case R.layout.translation_row: TranslationItem item = (TranslationItem) rowItem; holder.getTranslationTitle().setText(item.name()); <START> if (isEmpty(item.translation.translatorNameLocalized)) { <END> holder.getTranslationInfo().setText(item.translation.translator); } else { holder.getTranslationInfo().setText(item.translation.translatorNameLocalized); } if (item.exists()) { if (item.needsUpgrade()) { holder.getLeftImage().setImageResource(R.drawable.ic_download); holder.getLeftImage().setVisibility(View.VISIBLE); holder.getTranslationInfo().setText(R.string.update_available); } else { holder.getLeftImage().setVisibility(View.GONE); } holder.getRightImage().setImageResource(R.drawable.ic_cancel); holder.getRightImage().setVisibility(View.VISIBLE); holder.getRightImage().setContentDescription(context.getString(R.string.remove_button)); holder.itemView.setOnClickListener(v -> onClickRemoveSubject.onNext(item)); } else { holder.getLeftImage().setVisibility(View.GONE); holder.getRightImage().setImageResource(R.drawable.ic_download); holder.getRightImage().setVisibility(View.VISIBLE); holder.getRightImage().setOnClickListener(null); holder.getRightImage().setClickable(false); holder.getRightImage().setContentDescription(null); holder.itemView.setOnClickListener(v -> onClickDownloadSubject.onNext(item)); } break; case R.layout.translation_sep: holder.getSeparatorText().setText(rowItem.name()); break; } }</code><technical_language>please replace TextUtils.isEmpty (i.e. instead of static import now)</technical_language>

Target:
public void onBindViewHolder(TranslationViewHolder holder, int position) { TranslationRowData rowItem = mTranslations.get(position); switch (holder.getItemViewType()) { case R.layout.translation_row: TranslationItem item = (TranslationItem) rowItem; holder.getTranslationTitle().setText(item.name()); if (TextUtils.isEmpty(item.translation.translatorNameLocalized)) { holder.getTranslationInfo().setText(item.translation.translator); } else { holder.getTranslationInfo().setText(item.translation.translatorNameLocalized); } ImageView leftImage = holder.getLeftImage(); ImageView rightImage = holder.getRightImage(); if (item.exists()) { if (item.needsUpgrade()) { leftImage.setImageResource(R.drawable.ic_download); leftImage.setVisibility(View.VISIBLE); holder.getTranslationInfo().setText(R.string.update_available); } else { leftImage.setVisibility(View.GONE); } rightImage.setImageResource(R.drawable.ic_cancel); rightImage.setVisibility(View.VISIBLE); rightImage.setContentDescription(context.getString(R.string.remove_button)); holder.itemView.setOnClickListener(v -> onClickRemoveSubject.onNext(item)); } else { leftImage.setVisibility(View.GONE); rightImage.setImageResource(R.drawable.ic_download); rightImage.setVisibility(View.VISIBLE); rightImage.setOnClickListener(null); rightImage.setClickable(false); rightImage.setContentDescription(null); holder.itemView.setOnClickListener(v -> onClickDownloadSubject.onNext(item)); } break; case R.layout.translation_sep: holder.getSeparatorText().setText(rowItem.name()); break; } }