Method (@NotNull Class<?> aClass) { Method method = ReflectionUtil.getMethod(aClass, myMethodName, myMethodParameters); return method == null ? ReflectionUtil.getDeclaredMethod(aClass, myMethodName, myMethodParameters) : method; }