def findFEATImage(overlayList, overlay):
    """Searches the given :class:`.OverlayList` to see if there is a
    :class:`.FEATImage` associated with the given ``overlay``. Returns the
    ``FEATImage`` if found, otherwise returns ``None``.
    """
    import fsl.data.featanalysis as featanalysis
    import fsl.data.featimage as featimage
    if isinstance(overlay, featimage.FEATImage):
        return overlay
    if overlay is None:
        return None
    if overlay.dataSource is None:
        return None
    featPath = featanalysis.getAnalysisDir(overlay.dataSource)
    if featPath is None:
        return None
    dataPath = featanalysis.getDataFile(featPath)
    featImage = overlayList.find(dataPath)
    return featImage
