LeafElement (@NotNull final IElementType type, @NotNull CharSequence text) { if (type == PropertiesTokenTypes.KEY_CHARACTERS) { return new PropertyKeyImpl(type, text); } if (type == PropertiesTokenTypes.VALUE_CHARACTERS) { return new PropertyValueImpl(type, text); } if (type == PropertiesTokenTypes.END_OF_LINE_COMMENT) { return new PsiCommentImpl(type, text); } return new LeafPsiElement(type, text); }