Method (@NotNull Class<?> aClass) { Method method = getDeclaredMethod(aClass); if (method == null && aClass.isInterface() && OBJECT_METHOD_NAMES.contains(myMethodName)) { method = ReflectionUtil.getDeclaredMethod(Object.class, myMethodName, myMethodParameters); } return method; }