PsiExpression (@Nullable PsiExpression expression) { if (expression instanceof PsiTypeCastExpression typeCast) { final PsiTypeElement castElement = typeCast.getCastType(); if (castElement != null && castElement.getType().equalsToText(JAVA_LANG_OBJECT)) { return typeCast.getOperand(); } } return null; }