void (PsiElement resolved, PsiElement element) { if (resolved instanceof PySubscriptionExpression || resolved instanceof PyNoneLiteralExpression) { return; } if (PyNames.NONE.equals(element.getText())) { return; } if (resolved instanceof PyTypedElement) { final PyType type = myTypeEvalContext.getType((PyTypedElement)resolved); final Boolean isCallable = PyTypeChecker.isCallable(type); if (isCallable != null && !isCallable) { registerProblem(element, PyPsiBundle.message("INSP.strange.arg.want.callable")); } } }