private FieldScope doFindGetterField() {
        if (this.getType() == null || this.getArgumentCount() > 0) {
            // void methods or those with arguments are not deemed to be getters
            return null;
        }
        if (!this.isPublic()) {
            // only public methods are deemed eligible to be getters
            return null;
        }
        String methodName = this.getDeclaredName();
        Set<String> possibleFieldNames = Stream.of("get", "is")
                .flatMap(prefix -> getPossibleFieldNames(prefix, methodName))
                .collect(Collectors.toSet());
        if (possibleFieldNames.isEmpty()) {
            // method name does not fall into getter conventions
            return null;
        }
        // method name matched getter conventions
        // check whether a matching field exists
        return Stream.of(this.getDeclaringTypeMembers().getMemberFields())
                .filter(memberField -> possibleFieldNames.contains(memberField.getName()))
                .findFirst()
                .map(field -> this.getContext().createFieldScope(field, this.getDeclarationDetails()))
                .orElse(null);
    }
Look-up the field associated with this method if it is deemed to be a getter by convention.

@return associated field
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/MethodScope.java