private boolean isCloudNode(Node node) {
        boolean instantiable =
                Try.of(() -> node.getDescriptor().isInstantiable()).getOrElse(true);
        final boolean cloudSlave = node instanceof AbstractCloudSlave;
        final boolean ephemeral = node instanceof EphemeralNode;
        return !instantiable || cloudSlave || ephemeral;
    }
@author <a href="mailto:nicolas.deloof@gmail.com">Nicolas De Loof</a>
plugin/src/main/java/io/jenkins/plugins/casc/core/JenkinsConfigurator.java