void (PsiType psiType) { if (myErrorMessage != null) return; if (psiType == null) { myErrorMessage = JavaPsiBundle.message("diamond.error.cannot.infer.type.arguments", myNewExpressionPresentableText); } else { myInferredTypes.add(psiType); } }