LeafElement (final @NotNull IElementType type, @NotNull CharSequence text) { if (type instanceof IXmlLeafElementType) { if (type == XML_REAL_WHITE_SPACE) { return new PsiWhiteSpaceImpl(text); } return new XmlTokenImpl(type, text); } return null; }