LocalQuickFix (Object... infos) { final PsiTypeCastExpression expression = (PsiTypeCastExpression)infos[0]; final PsiElement parent = expression.getParent(); if (!(parent instanceof PsiPolyadicExpression polyadicExpression)) { return null; } final IElementType tokenType = polyadicExpression.getOperationTokenType(); if (JavaTokenType.ASTERISK != tokenType || polyadicExpression.getType() == null) { return null; } return new MathRandomCastToIntegerFix(); }