class AlreadyRanChangeSetFilter extends RanChangeSetFilter {

    public AlreadyRanChangeSetFilter(List<RanChangeSet> ranChangeSets) {
        super(ranChangeSets);
    }

    @Override
    public ChangeSetFilterResult accepts(ChangeSet changeSet) {<FILL_FUNCTION_BODY>}

    @Override
    public String getMdcName() {
        return "alreadyRan";
    }
}

        if (getRanChangeSet(changeSet) != null) {
            return new ChangeSetFilterResult(true, "Changeset already ran", this.getClass(), getMdcName(), getDisplayName());
        } else {
            return new ChangeSetFilterResult(false, "Changeset has not ran", this.getClass(), getMdcName(), getDisplayName());
        }
    
<methods>public void <init>(List<liquibase.changelog.RanChangeSet>) ,public liquibase.changelog.RanChangeSet getRanChangeSet(liquibase.changelog.ChangeSet) <variables>public List<liquibase.changelog.RanChangeSet> ranChangeSets