boolean (@NotNull final PsiFile file, final int offset) { if (PsiUtilCore.getLanguageAtOffset(file, offset).isKindOf(JavaLanguage.INSTANCE)) { return isStringLiteral(file.findElementAt(offset)); } return false; }