int (boolean checkHierarchy, boolean skipExternal, boolean skipInferred) { int flags = CHECK_TYPE; if (checkHierarchy) flags |= CHECK_HIERARCHY; if (!skipExternal) flags |= CHECK_EXTERNAL; if (!skipInferred) flags |= CHECK_INFERRED; return flags; }