I'm adding a field to a class, and calling "codeStyleManager.shortenClassReferences(psiClass)"
afterwards to move the FQN classname (of the field just added) to the imports
I'd like to perform this operation for the field only, but it seems to have
no effect. (Only psiClass and psiMethod seem to be valid args to shortenClassReferences()).
I assume that the workaround is simply to add the necessary imports myself,
And another question: what does "importList.findOnDemandImportStatement()"
actually mean? Does IDEA remember how an import statement was created (manually
or "on demand"?)? What's the distinction, and what's the use for this?