PsiType (final String s, final ConvertContext context) { if (s == null) { return null; } try { return JavaPsiFacade.getElementFactory(context.getFile().getProject()).createTypeFromText(s.replace('$', '.'), null); } catch (IncorrectOperationException e) { return null; } }