public static @Nullable UserCapabilityImpl getNullable(@NotNull Player player) {
        return (UserCapabilityImpl) getCapability(player).resolve().orElse(null);
    }
Gets a {@link UserCapability} for a given {@link ServerPlayer}.

@param player the player
@return the capability, or null
forge/src/main/java/me/lucko/luckperms/forge/capabilities/UserCapabilityImpl.java