public boolean checkByPattern(final @NotNull String name) {
    if (myPatternError != null) return true;
    if (Boolean.TRUE.equals(myValuePatternCache.get(name))) return true;
    assert myCompiledPattern != null;
    boolean matches = matchPattern(myCompiledPattern, name);
    myValuePatternCache.put(name, matches);
    return matches;
  }
public boolean checkByPattern(final @NotNull String name)