List<Method> (@NotNull Class<?> clazz) { List<Method> methods = collectMethods(clazz); List<Method> result = new ArrayList<>(); for (Method method: methods) { String methodName = method.getName(); if (methodName.startsWith("get") && method.getParameterTypes().length == 0 && !methodName.equals("getClass")) { result.add(method); } } return result; }