void (@NotNull PsiPattern sourcePattern, @NotNull PsiPattern innerPattern, @NotNull PsiType checkType, @NotNull DeferredOffset endPatternOffset, @NotNull DfaVariableValue patternDfaVar, @Nullable DfaAnchor instanceofAnchor) { boolean java20plus = PsiUtil.getLanguageLevel(myCodeFragment).isAtLeast(LanguageLevel.JDK_20_PREVIEW); if (java20plus ? (sourcePattern == innerPattern || !JavaPsiPatternUtil.isUnconditionalForType(innerPattern, checkType)) : !JavaPsiPatternUtil.isUnconditionalForType(innerPattern, checkType)) { addPatternTypeTest(innerPattern, instanceofAnchor, endPatternOffset, patternDfaVar); } else { addInstruction(new SimpleAssignmentInstruction(null, patternDfaVar)); } }