public boolean isSecret(@CheckForNull Owner target) {
        // This.secret should be always true for the first condition, but getType() is overridable
        // Here we define an additional check just in case getType() is overridden in another implementation
        return secret || calculateIfSecret(target != null ? target.getClass() : null, this.name);
    }
Checks whether an attribute is considered a secret one.
@return {@code true} if the attribute is secret
@param target Target object.
              If {@code null}, only the attribute metadata is checked
@since 1.25
plugin/src/main/java/io/jenkins/plugins/casc/Attribute.java