boolean (@NotNull String s) { int length = s.length(); if (length <= 1) return false; char firstChar = s.charAt(0); if (firstChar != '\'' && firstChar != '\"') return false; return firstChar == s.charAt(length - 1); }