IdeaTestExecutionPolicy () { if (ourCurrent != null) return ourCurrent; String policyClassName = System.getProperty(SYSTEM_PROPERTY_NAME); if (policyClassName == null) return null; try { Class<?> policyClass = Class.forName(policyClassName); ourCurrent = (IdeaTestExecutionPolicy)policyClass.getDeclaredConstructor().newInstance(); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | NoSuchMethodException | InvocationTargetException e) { throw new RuntimeException(e); } return ourCurrent; }