private static boolean isIgnoredMethod(Class<?> klass, Method method) {
            // Ignore Object.class methods.
            if (method.getDeclaringClass() == Object.class) {
                return true;
            }
            // Special casing for ignore getSourceLocation.
            // Does this need to be made more generic?
            if (FromSourceLocation.class.isAssignableFrom(klass) && method.getName().equals("getSourceLocation")) {
                return true;
            }
            return false;
        }
Contains the getters of a class that are eligible to convert to a Node.

<p>Getters are public methods that take zero arguments and start with
"get" or "is". Getters that are associated with properties marked as
{@code transient} are not serialized.
smithy-model/src/main/java/software/amazon/smithy/model/node/DefaultNodeSerializers.java