boolean (int argCount, PsiMethodReferenceExpression methodRef, PsiMethod method) { if (argCount != 1 || !method.getName().equals("isInstance")) return false; PsiClassObjectAccessExpression qualifier = ObjectUtils.tryCast(PsiUtil.skipParenthesizedExprDown(methodRef.getQualifierExpression()), PsiClassObjectAccessExpression.class); if (qualifier == null) return false; PsiType type = qualifier.getOperand().getType(); push(DfTypes.typedObject(type, Nullability.NOT_NULL)); add(new InstanceofInstruction(new JavaMethodReferenceReturnAnchor(methodRef), false)); return true; }