public LazyParseableElement(@NotNull IElementType type, @Nullable CharSequence text) { super(type); if (text != null) { synchronized (lock) { myText = ImmutableCharSequence.asImmutable(text); } setCachedLength(text.length()); } }
@NotNull @Override public CharSequence getImmutableCharSequence() { return ImmutableCharSequence.asImmutable(getText()); }