LocalQuickFix (Object... infos) { if (infos.length > 0 && infos[0] instanceof PsiBinaryExpression binOp) { if (binOp.getOperationTokenType().equals(JavaTokenType.DIV) && isZero(binOp.getLOperand())) { PsiType type = binOp.getType(); if (PsiTypes.doubleType().equals(type) || PsiTypes.floatType().equals(type)) { return new ReplaceWithNaNFix(); } } } return null; }