List<PsiType[]> (@NotNull final PsiMethod method, @NotNull PsiSubstitutor substitutor, String @NotNull [] options) { return Collections.singletonList(ContainerUtil.map(options, value -> { try { return JavaPsiFacade.getElementFactory(method.getProject()).createTypeFromText(value, method); } catch (IncorrectOperationException e) { return PsiTypes.nullType(); } }, new PsiType[options.length])); }