private static @Nullable Method findPrimaryKeyAnnotatedMethod(@NotNull Method sampleMethod, @NotNull Class<?> aClass) {
    if (sampleMethod.getParameterCount() != 0 || sampleMethod.getReturnType() == void.class) {
      return null;
    }
    return JavaMethodSignature.findMethod(sampleMethod, aClass, method -> method.isAnnotationPresent(PrimaryKey.class));
  }
private static @Nullable Method findPrimaryKeyAnnotatedMethod(@NotNull Method sampleMethod, @NotNull Class<?> aClass)