boolean (@NotNull String methodName) { if (!StringUtil.equals(BUILDER_METHODS, myCachedBuilderMethods)) { myCachedBuilderMethods = BUILDER_METHODS; myBuilderMethodsNameCache.clear(); Arrays.stream(BUILDER_METHODS.split(",")) .filter(chunk -> !StringUtil.isEmptyOrSpaces(chunk)) .forEach(chunk -> { myBuilderMethodsNameCache.add(chunk.trim()); }); } return myBuilderMethodsNameCache.contains(methodName); }