PsiReference (String @NotNull ... filePaths) { PsiReference reference = getReferenceAtCaretPosition(filePaths); assertNotNull("no reference found at " + editor.getCaretModel().getLogicalPosition(), reference); return reference; }