private static @Nullable MemberType parseMemberType(@NotNull PsiElement element) {
      if (element instanceof PsiMethod) return MemberType.METHOD;
      return element instanceof PsiField ? MemberType.FIELD : null;
    }
private static @Nullable MemberType parseMemberType(@NotNull PsiElement element)