class SubroutineDefinitionHeaderSmoosher implements IndexedSmoosher<String> {

    @Override
    public boolean canSmoosh(final String line) {
        if (line == null) {
            throw new IllegalArgumentException("Line cannot be null.");
        }

        return line.toUpperCase(Locale.US).trim().startsWith("SUBROUTINE ");
    }

}