BaseInjection (@NotNull PsiElement context, @NotNull String supportId, @Nullable Ref<? super PsiElement> causeRef) { CommentInjectionData data = findCommentInjectionData(context, causeRef); if (data == null) return null; BaseInjection injection = new BaseInjection(supportId); injection.setPrefix(data.getPrefix()); injection.setSuffix(data.getSuffix()); injection.setInjectedLanguageId(data.getInjectedLanguageId()); injection.setDisplayName(data.getDisplayName()); return injection; }