public boolean isVoid() {
        return this.getType() == null;
    }
Indicating whether the method is declared as {@code void}, i.e. has no return value.

@return whether method has no return value
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/MethodScope.java