boolean (@NotNull PsiFile file, @NotNull PsiElement context) { if (file.getUserData(INJECTION_FORBIDS_LINE_COMMENTS) != null) { return true; } if (context.textContains('\'') || context.textContains('\"') || context.textContains('/')) { final String s = context.getText(); return StringUtil.startsWith(s, "\"") || StringUtil.startsWith(s, "'") || StringUtil.startsWith(s, "/"); } return false; }