Add possibility to get position of defined text in styled text

stm like new DefaultStyledText.getPosition("private int someAttribute");

- helps when trying to insert text on specified position