boolean (PsiExpression expression) { if (expression == null) { return false; } if (!(expression instanceof PsiTypeCastExpression castExpression)) { return false; } final PsiType type = castExpression.getType(); return PsiTypes.intType().equals(type); }