void (PsiExpression call, PsiClass aClass) { if (call instanceof PsiMethodCallExpression) { registerMethodCallError((PsiMethodCallExpression)call, aClass); } else if (call instanceof PsiMethodReferenceExpression){ registerError(ObjectUtils.notNull(((PsiMethodReferenceExpression)call).getReferenceNameElement(), call), aClass); } }