private <T extends PsiElement> T @NotNull [] findChildren(Class<T> memberClass, T[] emptyArray) {
    T[] members = PsiTreeUtil.getChildrenOfType(this, memberClass);
    return members != null ? members : emptyArray;
  }
private <T extends PsiElement> T @NotNull [] findChildren(Class<T> memberClass, T[] emptyArray)