def METHOD_NAME(self, whitePath, blackPath, x, y):
    pixmap = QPixmap(24, 24)
    pixmap.fill(Qt.transparent)
    painter = QPainter()
    painter.begin(pixmap)
    painter.setRenderHint(QPainter.Antialiasing)
    painter.translate(0, pixmap.height())
    painter.scale(1, -1)
    painter.fillPath(whitePath, Qt.white)
    painter.end()
    effect = QGraphicsDropShadowEffect()
    effect.setColor(QColor.fromRgbF(0, 0, 0, 0.3))
    effect.setBlurRadius(4)
    effect.setOffset(0, 1)
    pixmap = applyEffectToPixmap(pixmap, effect)
    painter.begin(pixmap)
    painter.setRenderHint(QPainter.Antialiasing)
    painter.translate(0, pixmap.height())
    painter.scale(1, -1)
    painter.fillPath(blackPath, Qt.black)
    painter.end()
    return QCursor(pixmap, int(x), int(y))