boolean (@Nullable final PsiMember member, final boolean staticAccess) { if (member == null) { return false; } return ReadAction.compute(() -> !member.hasModifierProperty(PsiModifier.PRIVATE) && member.hasModifierProperty(PsiModifier.STATIC) == staticAccess).booleanValue(); }