IntentionAction (@NotNull PsiReferenceExpression exprToReplace, @NotNull PsiClass resolvedExprClass, @NotNull String patternVarName) { return new ReplaceWithTypePatternFix(exprToReplace, resolvedExprClass, patternVarName).asIntention(); }