private void fillView(int position, @NotNull ViewGroup result) { final T mathEntity = getItem(position); final TextView text = (TextView) result.findViewById(R.id.math_entity_text); text.setText(String.valueOf(mathEntity)); final String mathEntityDescription = descriptionGetter.getDescription(getContext(), mathEntity.getName()); final TextView description = (TextView) result.findViewById(R.id.math_entity_description); if (!StringUtils.isEmpty(mathEntityDescription)) { description.setVisibility(View.VISIBLE); description.setText(mathEntityDescription); } else { description.setVisibility(View.GONE); } }