String (AssertHint assertHint) { final PsiExpression firstArgument = assertHint.getFirstArgument(); final PsiExpression secondArgument = assertHint.getSecondArgument(); final PsiLiteralExpression literalExpression; if (firstArgument instanceof PsiLiteralExpression) { literalExpression = (PsiLiteralExpression)firstArgument; } else if (secondArgument instanceof PsiLiteralExpression) { literalExpression = (PsiLiteralExpression)secondArgument; } else { return ""; } final Object value = literalExpression.getValue(); if (value == Boolean.TRUE) { return "assertTrue()"; } else if (value == Boolean.FALSE) { return "assertFalse()"; } else if (value == null) { return "assertNull()"; } return ""; }