code: public <T extends View> ArrayList<T> getFilteredViews(Class<T> classToFilterBy) {
  		ArrayList<T> filteredViews = new ArrayList<T>();
  		List<View> allViews = this.getViews();
  		for(View view : allViews){
  			if (view != null && classToFilterBy.isAssignableFrom(view.getClass())) {
  				filteredViews.add(classToFilterBy.cast(view));
  			}
  		}
  		return filteredViews;
  	}
docs: Filters through all views in current activity and gets those that inherit from a given class to filter by
  @param classToFilterBy - The class type by which to filter by.
  @param <T> Type representing a class
  @return - an ArrayList of views matching the filter