String (@NotNull String key2) { final int startIndex = key2.indexOf('#'); LOG.assertTrue(startIndex >= 0); @NonNls String s = key2.substring(0, startIndex); if (!"variableName".equals(s)) return null; final int index = key2.indexOf('#', startIndex + 1); LOG.assertTrue(index >= 0); return key2.substring(index + 1); }