private static PsiElement resolveField(@NotNull String name, @NotNull ReflectiveClass ownerClass, Predicate<? super PsiField> filter) {
    final PsiField field = ownerClass.getPsiClass().findFieldByName(name, true);
    return field != null && filter.test(field) ? field : null;
  }
private static PsiElement resolveField(@NotNull String name, @NotNull ReflectiveClass ownerClass, Predicate<? super PsiField> filter)