void (@NotNull PyExpression node, @NotNull String name, @NotNull AccessDirection dir, @NotNull Property property) { final Maybe<PyCallable> accessor = property.getByDirection(dir); if (accessor.isDefined() && accessor.value() == null) { final String message; if (dir == AccessDirection.WRITE) { message = PyPsiBundle.message("INSP.property.cannot.be.set", name); } else if (dir == AccessDirection.DELETE) { message = PyPsiBundle.message("INSP.property.cannot.be.deleted", name); } else { message = PyPsiBundle.message("INSP.property.cannot.be.read", name); } registerProblem(node, message, new PyCreatePropertyQuickFix(dir)); } }