public @CheckForNull Label getAssignedLabel() {
        if(canRoam)
            return null;

        if(assignedNode==null)
            return Jenkins.getInstance().getSelfLabel();
        return Jenkins.getInstance().getLabel(assignedNode);
    }
public @ CheckForNull Label getAssignedLabel ( ) { if ( canRoam ) return null ; if ( assignedNode == null ) return Jenkins . getInstance ( ) . getSelfLabel ( ) ; return Jenkins . getInstance ( ) . getLabel ( assignedNode ) ; }
If this project is configured to be always built on this node,
return that {@link Node}. Otherwise null.