code: private <T extends IEntity> boolean isSpecialEntity(T entity) {
          return (entity instanceof Estimate)
                  || (entity instanceof Invoice)
                  || (entity instanceof SalesReceipt);
      }
docs: Method verifies that entity is included in special list which might have additional features (like export as pdf)
  @param entity
  @param <T>
  @return