String (@NotNull PsiElement element) { String className = "Optional"; PsiType type = element instanceof PsiExpression ? ((PsiExpression)element).getType() : null; if (type instanceof PsiPrimitiveType) { if (PsiTypes.intType().equals(type)) { className = "OptionalInt"; } else if (PsiTypes.doubleType().equals(type)) { className = "OptionalDouble"; } else if (PsiTypes.longType().equals(type)) { className = "OptionalLong"; } } return className; }