Perhaps make this one line:

    if (cell != null && !cell.acceptDrop) {