Properties getProperties() {
		if( propertiesCache != null )
			return propertiesCache;

		String text = textArea.getText();
		try {
			propertiesCache = UIDefaultsLoaderAccessor.newUIProperties( lastDark );
			propertiesCache.load( new StringReader( text ) );

			// re-load if dark has changed (getBaseTheme() invokes getProperties()!!!)
			boolean dark = isDark( getBaseTheme() );
			if( lastDark != dark ) {
				lastDark = dark;
				propertiesCache = UIDefaultsLoaderAccessor.newUIProperties( lastDark );
				propertiesCache.load( new StringReader( text ) );
			}
		} catch( IOException ex ) {
			ex.printStackTrace(); //TODO
		}
		return propertiesCache;
	}
Supports parsing content of text area in FlatLaf properties syntax.

@author Karl Tauber
flatlaf-theme-editor/src/main/java/com/formdev/flatlaf/themeeditor/FlatThemePropertiesSupport.java