I have tried to add a new property to a .properties file, but I get stuck when trying to create a new Property using the PropertyImpl contructor. It takes in a ASTNode, and from the PsiViewer I can see that it's an "Element(Properties:PROPERTY)". However, I didn't see any ASTNode's that directly correspond to a "Property" like many of the other available options.
What I have tried is (applying this in a quick fix):
If this is not the right direction to take, is there a factory for doing something along these lines? I didn't see the ability to do such using the PsiElementFactory.