void (@NotNull PyElement node, @Nullable PyExpression callee) { if (node.getParent() instanceof PyDecorator) return; //we've already been here if (callee != null && isCallable(callee, myTypeEvalContext) == Boolean.FALSE) { final PyType calleeType = myTypeEvalContext.getType(callee); @InspectionMessage String message = PyPsiBundle.message("INSP.expression.is.not.callable"); if (calleeType instanceof PyClassType) { message = PyPsiBundle.message("INSP.class.object.is.not.callable", calleeType.getName()); } else { final String name = callee.getName(); if (name != null) { message = PyPsiBundle.message("INSP.symbol.is.not.callable", name); } } registerProblem(node, message, new PyRemoveCallQuickFix()); } }