PsiType[] () { ArrayList<PsiType> types = new ArrayList<>(); PsiManagerEx manager = getManager(); GlobalSearchScope scope = GlobalSearchScope.allScope(getProject()); PsiElementFactory factory = JavaPsiFacade.getInstance(getProject()).getElementFactory(); for (GrDocMethodParameter parameter : getParameters()) { GrDocReferenceElement typeElement = parameter.getTypeElement(); try { PsiType type = factory.createTypeFromText(typeElement.getText(), this); type = TypesUtil.boxPrimitiveType(type, manager, scope); types.add(type); } catch (IncorrectOperationException e) { LOG.info(e); types.add(null); } } return types.toArray(PsiType.createArray(types.size())); }