private static boolean hasCorrectModifiers(final @Nullable PsiMember member, final boolean staticAccess) {
    if (member == null) {
      return false;
    }

    return ReadAction.compute(() -> !member.hasModifierProperty(PsiModifier.PRIVATE) &&
                                 member.hasModifierProperty(PsiModifier.STATIC) == staticAccess).booleanValue();
  }
private static boolean hasCorrectModifiers(final @Nullable PsiMember member, final boolean staticAccess)