Whats the best way to create a java file and add raw text contents to it?
I noticed these two methods, but first one doesn't give a location to put the file, and the second one I'm missing context too. Am I missing some docs on this? So what are the steps to get the file into the project?
PsiFile psiFile = PsiFileFactory.getInstance(project).createFileFromText(name, StdFileTypes.JAVA, contents);