JavaLikeQuoteHandler (@NotNull Editor editor, @NotNull PsiElement psiAtOffset) { final QuoteHandler fileTypeQuoteHandler = TypedHandler.getQuoteHandler(psiAtOffset.getContainingFile(), editor); return fileTypeQuoteHandler instanceof JavaLikeQuoteHandler ? (JavaLikeQuoteHandler)fileTypeQuoteHandler : null; }