void (@NotNull CompletionInitializationContext context) { // With standard dummy identifier inserted, docstring might become malformed // e.g. "@param para<caret>m" -> "@param paraIntellijIdeaRulezzz m" // and param is no longer parameter, but type reference now final PsiReference ref = context.getFile().findReferenceAt(context.getCaret().getOffset()); if (ref instanceof DocStringParameterReference || ref instanceof DocStringTypeReference) { context.setDummyIdentifier(CompletionInitializationContext.DUMMY_IDENTIFIER_TRIMMED); } }