src/main/java/com/cloudbees/jenkins/support/filter/ContentFilter.java
static String filter(@CheckForNull ContentFilter filter, @CheckForNull String text) {
        if (filter != null && StringUtils.isNotEmpty(text)) {
            return filter.filter(text);
        } else {
            return text;
        }
    }
/**
     * An utility method to filter a text only when both, the filter and the text are not null and the text is not empty
     * too.
     * @param filter the filter to use when filtering
     * @param text the text to filter
     * @return the text filtered if it is not empty and the filter is not null
     */
An utility method to filter a text only when both, the filter and the text are not null and the text is not empty
too.
@param filter the filter to use when filtering
@param text the text to filter
@return the text filtered if it is not empty and the filter is not null
An utility method to filter a text only when both the filter and the text are not null and the text is not empty too . @param filter the filter to use when filtering @param text the text to filter @return the text filtered if it is not empty and the filter is not null
static String filter(@CheckForNull ContentFilter filter, @CheckForNull String text) {
        if (filter != null && StringUtils.isNotEmpty(text)) {
            return filter.filter(text);
        } else {
            return text;
        }
    }
static String filter ( @ CheckForNull ContentFilter filter , @ CheckForNull String text ) { if ( filter != null && StringUtils . isNotEmpty ( text ) ) { return filter . filter ( text ) ; } else { return text ; } }
An utility method to filter a text only when both, the filter and the text are not null and the text is not empty
 too.
An utility method to filter a text only when both the filter and the text are not null and the text is not empty too .